Skip to content

Commit 014d6df

Browse files
committed
[NFC] Indicate whether dumped types are imported
1 parent 72810db commit 014d6df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5777,6 +5777,7 @@ namespace {
57775777
printCommon(#Name, label); \
57785778
\
57795779
printFieldQuoted(T->getDecl()->printRef(), Label::always("decl")); \
5780+
printFlag(T->getDecl()->hasClangNode(), "foreign"); \
57805781
\
57815782
if (T->getParent()) \
57825783
printRec(T->getParent(), Label::always("parent")); \
@@ -5790,6 +5791,7 @@ namespace {
57905791
BoundGeneric##TypeClass *T, Label label) { \
57915792
printCommon("bound_generic_" #Name, label); \
57925793
printFieldQuoted(T->getDecl()->printRef(), Label::always("decl")); \
5794+
printFlag(T->getDecl()->hasClangNode(), "foreign"); \
57935795
if (T->getParent()) \
57945796
printRec(T->getParent(), Label::always("parent")); \
57955797
printList(T->getGenericArgs(), [&](auto arg, Label label) { \
@@ -5838,6 +5840,7 @@ namespace {
58385840
void visitModuleType(ModuleType *T, Label label) {
58395841
printCommon("module_type", label);
58405842
printDeclName(T->getModule(), Label::always("module"));
5843+
printFlag(T->getModule()->isNonSwiftModule(), "foreign");
58415844
printFoot();
58425845
}
58435846

0 commit comments

Comments
 (0)