diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-02-18 21:59:16 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-02-18 21:59:16 +0000 |
commit | b3c3d1a638061ae8bfb2c03d27c23399cfe73ef0 (patch) | |
tree | ba6a6aaacccf76e992e69cbb14c86a489098a81e /src/compiler | |
parent | 41dc7225084c735f0306e0ebb1a9da0fbd9886ff (diff) | |
download | scala-b3c3d1a638061ae8bfb2c03d27c23399cfe73ef0.tar.gz scala-b3c3d1a638061ae8bfb2c03d27c23399cfe73ef0.tar.bz2 scala-b3c3d1a638061ae8bfb2c03d27c23399cfe73ef0.zip |
Changed scala.Symbol to be always interned
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 3 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/IdeSupport.scala | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index cd8c084f03..04334951ec 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -615,8 +615,7 @@ trait Parsers extends NewScanners with MarkupParsers { if (isSymLit) { atPos(pos) { var symid = scalaDot(nme.Symbol) - val symobj = Apply(symid, List(t)) - if (isPattern) symobj else Select(symobj, nme.intern) + Apply(symid, List(t)) } } else { t diff --git a/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala b/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala index 097e57950b..50e72bf82f 100644 --- a/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala +++ b/src/compiler/scala/tools/nsc/symtab/IdeSupport.scala @@ -532,7 +532,7 @@ trait IdeSupport extends SymbolTable { // added to global, not analyzers. case _ : Float => 0 : Float case _ : Double => 0 : Double case _ : String => "string" - case _ : scala.Symbol => 'symbol + case _ : scala.Symbol => Symbol("symbol") case value => value })) } @@ -581,4 +581,4 @@ trait IdeSupport extends SymbolTable { // added to global, not analyzers. case _ => tree }).setPos(tree.pos) -}
\ No newline at end of file +} |