diff options
author | Paul Phillips <paulp@improving.org> | 2009-11-25 18:16:49 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-11-25 18:16:49 +0000 |
commit | 13b3d06f82c4f893dfc2710203bd64798fc73a99 (patch) | |
tree | 667c0daa16db6deee7df9430bed64437da09a48f /src/compiler | |
parent | 84b523c5204b5d959ca92436c88a85c40915dd3c (diff) | |
download | scala-13b3d06f82c4f893dfc2710203bd64798fc73a99.tar.gz scala-13b3d06f82c4f893dfc2710203bd64798fc73a99.tar.bz2 scala-13b3d06f82c4f893dfc2710203bd64798fc73a99.zip |
Working on scala.runtime.
and falling out of sync with StringLike. Made a method in MethodCache
verifiably tail-recursive.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/SymbolicXMLBuilder.scala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/SymbolicXMLBuilder.scala b/src/compiler/scala/tools/nsc/ast/parser/SymbolicXMLBuilder.scala index 03f3053edc..51c937dd7f 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/SymbolicXMLBuilder.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/SymbolicXMLBuilder.scala @@ -57,11 +57,7 @@ abstract class SymbolicXMLBuilder(p: Parsers#Parser, preserveWS: Boolean) // convenience methods private def LL[A](x: A*): List[List[A]] = List(List(x:_*)) - private def const(x: Any) = x match { - case s: runtime.RichString => Literal(Constant(s.toString)) // not our finest hour - case s: collection.immutable.StringLike[_] => Literal(Constant(s.toString)) // not our finest hour - case _ => Literal(Constant(x)) - } + private def const(x: Any) = Literal(Constant(x)) private def wild = Ident(nme.WILDCARD) private def wildStar = Ident(nme.WILDCARD_STAR.toTypeName) private def _scala(name: Name) = Select(Select(Ident(nme.ROOTPKG), nme.scala_), name) |