Skip to content

Commit 44838d4

Browse files
committed
ASTDumper: Fix a few minor issues with TypeAliasType
1 parent c07d5b5 commit 44838d4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,7 +3414,8 @@ class PrintTypeRepr : public TypeReprVisitor<PrintTypeRepr, void, StringRef>,
34143414
});
34153415
}
34163416

3417-
printRecRange(T->getGenericArguments(), "generic_arguments");
3417+
for (auto arg : T->getGenericArguments())
3418+
printRec(arg);
34183419

34193420
printFoot();
34203421
}
@@ -3886,14 +3887,16 @@ namespace {
38863887

38873888
printFieldQuoted(T->getDecl()->printRef(), "decl");
38883889
if (auto underlying = T->getSinglyDesugaredType()) {
3889-
printField(underlying, "underlying", TypeColor);
3890+
printRec(underlying, "underlying");
38903891
} else {
3892+
// This can't actually happen
38913893
printFlag("unresolved_underlying");
38923894
}
38933895

38943896
if (T->getParent())
38953897
printRec(T->getParent(), "parent");
3896-
printRecRange(T->getDirectGenericArgs(), "direct_generic_args");
3898+
for (auto arg : T->getDirectGenericArgs())
3899+
printRec(arg);
38973900

38983901
printFoot();
38993902
}

0 commit comments

Comments
 (0)