summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2006-07-26 15:39:49 +0000
committerIulian Dragos <jaguarul@gmail.com>2006-07-26 15:39:49 +0000
commit1ab39df4af59ddd4409c3638216e266a0615c9ee (patch)
tree318dd34180eb07c01bd9af7f1b7ee549ce4e4056 /src/compiler/scala/tools/nsc
parent2edbb8c6339fe58d173eef73144971ff00b0cb49 (diff)
downloadscala-1ab39df4af59ddd4409c3638216e266a0615c9ee.tar.gz
scala-1ab39df4af59ddd4409c3638216e266a0615c9ee.tar.bz2
scala-1ab39df4af59ddd4409c3638216e266a0615c9ee.zip
Changed to print more symbol information
Diffstat (limited to 'src/compiler/scala/tools/nsc')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
index 2d082b4b83..b6e9da4496 100644
--- a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala
@@ -27,7 +27,7 @@ import scala.text._
* Tree browsers can show the AST in a graphical and interactive
* way, useful for debugging and understanding.
*
- * @author Martin Odersky
+ * @author Iulian Dragos
* @version 1.0
*/
abstract class TreeBrowsers {
@@ -222,7 +222,8 @@ abstract class TreeBrowsers {
case ProgramTree(_) => ()
case UnitTree(_) => ()
case _ =>
- str.append("Symbol: ").append(TreeInfo.symbolText(t))
+ str.append("tree.pos: ").append(t.pos)
+ str.append("\nSymbol: ").append(TreeInfo.symbolText(t))
str.append("\nSymbol info: \n")
TreeInfo.symbolTypeDoc(t).format(getWidth() / getColumnWidth(), buf)
str.append(buf.toString())