File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -616,9 +616,9 @@ namespace {
616
616
void visitTypeAliasDecl (TypeAliasDecl *TAD) {
617
617
printCommon (TAD, " typealias" );
618
618
PrintWithColorRAII (OS, TypeColor) << " type='" ;
619
- if (TAD->getUnderlyingTypeLoc (). getType ()) {
619
+ if (auto underlying = TAD->getUnderlyingType ()) {
620
620
PrintWithColorRAII (OS, TypeColor)
621
- << TAD-> getUnderlyingTypeLoc (). getType () .getString ();
621
+ << underlying .getString ();
622
622
} else {
623
623
PrintWithColorRAII (OS, TypeColor) << " <<<unresolved>>>" ;
624
624
}
@@ -3378,6 +3378,12 @@ namespace {
3378
3378
void visitTypeAliasType (TypeAliasType *T, StringRef label) {
3379
3379
printCommon (label, " type_alias_type" );
3380
3380
printField (" decl" , T->getDecl ()->printRef ());
3381
+ PrintWithColorRAII (OS, TypeColor) << " underlying='" ;
3382
+ if (auto underlying = T->getSinglyDesugaredType ()) {
3383
+ PrintWithColorRAII (OS, TypeColor) << underlying->getString ();
3384
+ } else {
3385
+ PrintWithColorRAII (OS, TypeColor) << " <<<unresolved>>>" ;
3386
+ }
3381
3387
if (T->getParent ())
3382
3388
printRec (" parent" , T->getParent ());
3383
3389
You can’t perform that action at this time.
0 commit comments