We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0e78f commit 35c31e7Copy full SHA for 35c31e7
lib/AST/ASTPrinter.cpp
@@ -3509,6 +3509,22 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
3509
}
3510
3511
bool shouldPrintFullyQualified(TypeBase *T) {
3512
+ // SWIFT_ENABLE_TENSORFLOW
3513
+ // NOTE(TF-590): Workaround for REPL qualified module name bug.
3514
+ // Do not print qualified LLDB module names.
3515
+ {
3516
+ Decl *D;
3517
+ if (auto *TAT = dyn_cast<TypeAliasType>(T))
3518
+ D = TAT->getDecl();
3519
+ else
3520
+ D = T->getAnyGeneric();
3521
+
3522
+ ModuleDecl *M = D->getDeclContext()->getParentModule();
3523
+ if (isLLDBExpressionModule(M))
3524
+ return false;
3525
+ }
3526
+ // SWIFT_ENABLE_TENSORFLOW END
3527
3528
if (Options.FullyQualifiedTypes)
3529
return true;
3530
0 commit comments