Skip to content

Commit a49fea5

Browse files
Harlan Haskinsjrose-apple
authored andcommitted
[ParseableInterfaces] Print Builtin. before builtin types
This is only relevant to the standard library, but previously we would not print `Builtin.` before builtin types. Make sure we do.
1 parent 2b10c4c commit a49fea5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3512,6 +3512,8 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
35123512
if (auto parent = T->getParent()) {
35133513
visit(parent);
35143514
Printer << ".";
3515+
} else if (shouldPrintFullyQualified(T)) {
3516+
printModuleContext(T);
35153517
}
35163518

35173519
printTypeDeclName(T);

0 commit comments

Comments
 (0)