diff options
Diffstat (limited to 'sources/scalac/ast/printer/TextTreePrinter.java')
-rw-r--r-- | sources/scalac/ast/printer/TextTreePrinter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/scalac/ast/printer/TextTreePrinter.java b/sources/scalac/ast/printer/TextTreePrinter.java index cbe607b3b2..72e8b9848d 100644 --- a/sources/scalac/ast/printer/TextTreePrinter.java +++ b/sources/scalac/ast/printer/TextTreePrinter.java @@ -548,8 +548,10 @@ public class TextTreePrinter implements TreePrinter { break; case Select(Tree qualifier, Name name): - print(qualifier); - print(TXT_DOT); + if (Global.instance.debug || qualifier.symbol() == null || !qualifier.symbol().isRoot()) { + print(qualifier); + print(TXT_DOT); + } printSymbolUse(tree.symbol(), name); printType(tree); break; |