mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Skip name= header if ObjCClass/Foreign TypeRef name is empty
A minor cosmetic change when dumping typerefs.
This commit is contained in:
@@ -551,13 +551,15 @@ public:
|
||||
|
||||
void visitForeignClassTypeRef(const ForeignClassTypeRef *F) {
|
||||
printHeader("foreign");
|
||||
printField("name", F->getName());
|
||||
if (!F->getName().empty())
|
||||
printField("name", F->getName());
|
||||
OS << ')';
|
||||
}
|
||||
|
||||
void visitObjCClassTypeRef(const ObjCClassTypeRef *OC) {
|
||||
printHeader("objective-c-class");
|
||||
printField("name", OC->getName());
|
||||
if (!OC->getName().empty())
|
||||
printField("name", OC->getName());
|
||||
OS << ')';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user