diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-19 01:52:21 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-19 01:52:21 -0700 |
commit | c45132363dadb07cf372edc57ca6dbcfa97f1c0e (patch) | |
tree | c0286fa9ae1ffa57171d7e84b27f5a4262ac6ef4 /src/library | |
parent | 736f622f770700a9c18b84e6a76e31260990496c (diff) | |
parent | 3be520bcfc84f207d172934f9b147e31355cd877 (diff) | |
download | scala-c45132363dadb07cf372edc57ca6dbcfa97f1c0e.tar.gz scala-c45132363dadb07cf372edc57ca6dbcfa97f1c0e.tar.bz2 scala-c45132363dadb07cf372edc57ca6dbcfa97f1c0e.zip |
Merge pull request #729 from scalamacros/topic/showraw
improve showRaw
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/reflect/base/Base.scala | 2 | ||||
-rw-r--r-- | src/library/scala/reflect/base/Trees.scala | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/reflect/base/Base.scala b/src/library/scala/reflect/base/Base.scala index 461eaa2e9e..490a9e8c03 100644 --- a/src/library/scala/reflect/base/Base.scala +++ b/src/library/scala/reflect/base/Base.scala @@ -451,7 +451,7 @@ class Base extends Universe { self => } } - def show(tree: Tree) = s"<tree ${tree.getClass}>" + def treeToString(tree: Tree) = s"<tree ${tree.getClass}>" trait TermTree extends Tree diff --git a/src/library/scala/reflect/base/Trees.scala b/src/library/scala/reflect/base/Trees.scala index 298d229570..2814450ae3 100644 --- a/src/library/scala/reflect/base/Trees.scala +++ b/src/library/scala/reflect/base/Trees.scala @@ -28,11 +28,11 @@ trait Trees { self: Universe => def isType: Boolean /** Obtains string representation of a tree */ - override def toString: String = show(this) + override def toString: String = treeToString(this) } /** Obtains string representation of a tree */ - def show(tree: Tree): String + protected def treeToString(tree: Tree): String /** Tree is the basis for scala's abstract syntax. The nodes are * implemented as case classes, and the parameters which initialize |