summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-05-23 11:47:53 +0000
committerLex Spoon <lex@lexspoon.org>2007-05-23 11:47:53 +0000
commitc5b9e36ca3e2a2f26ba6308ef5bf15b0dad46d14 (patch)
tree3ff8202b5ae7d8dd4ef0c0e6e7e7f67a7aef44fd
parent8813209807028929e6421a6328348af6d6ea46cf (diff)
downloadscala-c5b9e36ca3e2a2f26ba6308ef5bf15b0dad46d14.tar.gz
scala-c5b9e36ca3e2a2f26ba6308ef5bf15b0dad46d14.tar.bz2
scala-c5b9e36ca3e2a2f26ba6308ef5bf15b0dad46d14.zip
pretty print parse trees in AnnotationArgument....
pretty print parse trees in AnnotationArgument.toString
-rw-r--r--src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala b/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala
index 97667a5dc3..8b36ad819f 100644
--- a/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala
+++ b/src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala
@@ -113,8 +113,6 @@ trait AnnotationInfos {
{
def this(cons: Constant) = this(cons2refltree(cons))
-//println("tree is: " + tree)
-
val constant: Option[Constant] = refltree2cons(tree)
def isConstant = !constant.isEmpty
@@ -122,7 +120,7 @@ trait AnnotationInfos {
override def toString: String =
constant match {
case Some(cons) => cons.escapedStringValue
- case None => tree.toString
+ case None => reflect.Print(tree)
}
}