@@ -630,17 +630,16 @@ namespace {
630
630
631
631
void visitTypeAliasDecl (TypeAliasDecl *TAD) {
632
632
printCommon (TAD, " typealias" );
633
- PrintWithColorRAII (OS, TypeColor) << " type=' " ;
633
+ PrintWithColorRAII (OS, TypeColor) << " type=" ;
634
634
if (auto underlying = TAD->getCachedUnderlyingType ()) {
635
635
PrintWithColorRAII (OS, TypeColor)
636
- << underlying.getString ();
636
+ << " ' " << underlying.getString () << " ' " ;
637
637
} else {
638
638
PrintWithColorRAII (OS, TypeColor) << " <<<unresolved>>>" ;
639
639
}
640
- printInherited (TAD->getInherited ());
641
- OS << " ')" ;
640
+ PrintWithColorRAII (OS, ParenthesisColor) << ' )' ;
642
641
}
643
-
642
+
644
643
void visitOpaqueTypeDecl (OpaqueTypeDecl *OTD) {
645
644
printCommon (OTD, " opaque_type" );
646
645
OS << " naming_decl=" ;
@@ -3470,9 +3469,10 @@ namespace {
3470
3469
void visitTypeAliasType (TypeAliasType *T, StringRef label) {
3471
3470
printCommon (label, " type_alias_type" );
3472
3471
printField (" decl" , T->getDecl ()->printRef ());
3473
- PrintWithColorRAII (OS, TypeColor) << " underlying=' " ;
3472
+ PrintWithColorRAII (OS, TypeColor) << " underlying=" ;
3474
3473
if (auto underlying = T->getSinglyDesugaredType ()) {
3475
- PrintWithColorRAII (OS, TypeColor) << underlying->getString ();
3474
+ PrintWithColorRAII (OS, TypeColor)
3475
+ << " '" << underlying->getString () << " '" ;
3476
3476
} else {
3477
3477
PrintWithColorRAII (OS, TypeColor) << " <<<unresolved>>>" ;
3478
3478
}
0 commit comments