From c5b9e36ca3e2a2f26ba6308ef5bf15b0dad46d14 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Wed, 23 May 2007 11:47:53 +0000 Subject: pretty print parse trees in AnnotationArgument.... pretty print parse trees in AnnotationArgument.toString --- src/compiler/scala/tools/nsc/symtab/AnnotationInfos.scala | 4 +--- 1 file changed, 1 insertion(+), 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) } } -- cgit v1.2.3