summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
index 6ef9f61610..42e6b641f2 100644
--- a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
@@ -227,7 +227,13 @@ abstract class TreeBrowsers {
str.append(buf.toString())
}
str.append("\nSymbol Attributes: \n").append(TreeInfo.symbolAttributes(t))
- str.append("\nType: \n").append(if (t.tpe ne null) t.tpe.toString() else "")
+ str.append("\ntree.tpe: ")
+ if (t.tpe ne null) {
+ str.append(t.tpe.toString()).append("\n")
+ buf = new StringWriter()
+ TypePrinter.toDocument(t.tpe).format(getWidth() / getColumnWidth(), buf)
+ str.append(buf.toString())
+ }
}
setText(str.toString())
}