summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-11 05:58:45 +0000
committerPaul Phillips <paulp@improving.org>2010-10-11 05:58:45 +0000
commita350673750d431c4f6159c908e3aca4af43057c4 (patch)
treeb7d38fcbee86031e370d4a2a1ce173a2feedfaee /src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
parent487e5bf895cde949c6c057e029c0bf96c6232431 (diff)
downloadscala-a350673750d431c4f6159c908e3aca4af43057c4.tar.gz
scala-a350673750d431c4f6159c908e3aca4af43057c4.tar.bz2
scala-a350673750d431c4f6159c908e3aca4af43057c4.zip
Some cleanups in the compiler source.
eliminated the import of ambiguously named classes from e.g. collection.mutable, obeyed a todo in the parser regarding dropping lbracket from statement starting tokens. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
index 602b3a8637..cbc79b215d 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
@@ -10,8 +10,8 @@ package classfile
import java.io.{ File, IOException }
import java.lang.Integer.toHexString
-import scala.collection.immutable.{Map, ListMap}
-import scala.collection.mutable.{ListBuffer, ArrayBuffer}
+import scala.collection.{ mutable, immutable }
+import scala.collection.mutable.{ ListBuffer, ArrayBuffer }
import scala.tools.nsc.io.AbstractFile
import scala.annotation.switch
import reflect.generic.PickleBuffer
@@ -690,7 +690,7 @@ abstract class ClassfileParser {
}
def existentialType(tparams: List[Symbol], tp: Type): Type =
if (tparams.isEmpty) tp else ExistentialType(tparams, tp)
- def sig2type(tparams: Map[Name,Symbol], skiptvs: Boolean): Type = {
+ def sig2type(tparams: immutable.Map[Name,Symbol], skiptvs: Boolean): Type = {
val tag = sig(index); index += 1
tag match {
case BYTE_TAG => definitions.ByteClass.tpe
@@ -797,7 +797,7 @@ abstract class ClassfileParser {
}
} // sig2type(tparams, skiptvs)
- def sig2typeBounds(tparams: Map[Name, Symbol], skiptvs: Boolean): Type = {
+ def sig2typeBounds(tparams: immutable.Map[Name, Symbol], skiptvs: Boolean): Type = {
val ts = new ListBuffer[Type]
while (sig(index) == ':') {
index += 1