aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-02-18 09:41:11 +0100
committerMartin Odersky <odersky@gmail.com>2013-02-18 09:41:11 +0100
commit2b4a19e80a643dfdf8eea5fa40811f76edb27be3 (patch)
tree564455c04aba5c2da721a188e85163e5240957c5 /src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
parent6bd453e8f3b50e7c48b6969bd4aaf6638b0455f8 (diff)
downloaddotty-2b4a19e80a643dfdf8eea5fa40811f76edb27be3.tar.gz
dotty-2b4a19e80a643dfdf8eea5fa40811f76edb27be3.tar.bz2
dotty-2b4a19e80a643dfdf8eea5fa40811f76edb27be3.zip
Fleshed out TypeTreeGen.
All base cases now supported. Still missing: Intelligent treatment of positions.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/ClassfileParser.scala')
-rw-r--r--src/dotty/tools/dotc/core/pickling/ClassfileParser.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
index 12b0971cf..9ba2c46e5 100644
--- a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
+++ b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala
@@ -5,6 +5,7 @@ package pickling
import Contexts._, Symbols._, Types._, Names._, StdNames._, NameOps._, Scopes._, Decorators._
import SymDenotations._, UnPickler._, Constants._, Trees._, Annotations._, Positions._
+import TypedTrees._
import java.io.{ File, IOException }
import java.lang.Integer.toHexString
import scala.collection.{ mutable, immutable }
@@ -36,7 +37,6 @@ class ClassfileParser(
def srcfile = srcfile0
private def currentIsTopLevel = !(classRoot.name contains '$')
- private val mk = makeTypedTree
private def mismatchError(c: Symbol) = {
throw new IOException("class file '%s' has location not matching its contents: contains ".format(in.file) + c)
@@ -399,7 +399,7 @@ class ClassfileParser(
for (i <- 0 until nargs) {
val name = pool.getName(in.nextChar)
parseAnnotArg(skip) match {
- case Some(arg) => argbuf += mk.NamedArg(name, arg)
+ case Some(arg) => argbuf += tpd.NamedArg(name, arg)
case None => hasError = !skip
}
}
@@ -444,8 +444,8 @@ class ClassfileParser(
case tpnme.BridgeATTR =>
sym.setFlag(Flags.Bridge)
case tpnme.DeprecatedATTR =>
- val msg = mk.Literal(Constant("see corresponding Javadoc for more information."))
- val since = mk.Literal(Constant(""))
+ val msg = tpd.Literal(Constant("see corresponding Javadoc for more information."))
+ val since = tpd.Literal(Constant(""))
sym.addAnnotation(Annotation(defn.DeprecatedAnnot, msg, since))
case tpnme.ConstantValueATTR =>
val c = pool.getConstant(in.nextChar)