We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f169b4 commit 3b2ceb7Copy full SHA for 3b2ceb7
include/swift/Reflection/TypeRef.h
@@ -551,13 +551,15 @@ class PrintTypeRef : public TypeRefVisitor<PrintTypeRef, void> {
551
552
void visitForeignClassTypeRef(const ForeignClassTypeRef *F) {
553
printHeader("foreign");
554
- printField("name", F->getName());
+ if (!F->getName().empty())
555
+ printField("name", F->getName());
556
OS << ')';
557
}
558
559
void visitObjCClassTypeRef(const ObjCClassTypeRef *OC) {
560
printHeader("objective-c-class");
- printField("name", OC->getName());
561
+ if (!OC->getName().empty())
562
+ printField("name", OC->getName());
563
564
565
0 commit comments