diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-12-03 13:41:19 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-12-16 13:15:02 +0100 |
commit | ff3de34eccd5f17c036117ac7f40c280542a0fdf (patch) | |
tree | 0d3ebe0bb449346053baea74d896f3d19a377016 /src/dotty/tools/backend/jvm/DottyBackendInterface.scala | |
parent | 81130ce45c1a4441023c536993538bcb62bf40d1 (diff) | |
download | dotty-ff3de34eccd5f17c036117ac7f40c280542a0fdf.tar.gz dotty-ff3de34eccd5f17c036117ac7f40c280542a0fdf.tar.bz2 dotty-ff3de34eccd5f17c036117ac7f40c280542a0fdf.zip |
Adapt backend to changes in scalac: new symbols get positions and types.
Diffstat (limited to 'src/dotty/tools/backend/jvm/DottyBackendInterface.scala')
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 9de6733e0..64e0aeb83 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -105,6 +105,8 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ val NothingClass: Symbol = defn.NothingClass val NullClass: Symbol = defn.NullClass val ObjectClass: Symbol = defn.ObjectClass + val Object_Type: Type = defn.ObjectType + val Throwable_Type: Type = defn.ThrowableType val Object_isInstanceOf: Symbol = defn.Any_isInstanceOf val Object_asInstanceOf: Symbol = defn.Any_asInstanceOf val Object_equals: Symbol = defn.Any_equals @@ -484,7 +486,9 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ def serialVUID: Option[Long] = None - def freshLocal(cunit: CompilationUnit, name: String, pos: Position, flags: Flags): Symbol = ??? + def freshLocal(cunit: CompilationUnit, name: String, tpe: Type, pos: Position, flags: Flags): Symbol = { + ctx.newSymbol(sym, name.toTermName, FlagSet(flags), tpe, NoSymbol, pos) + } def getter(clz: Symbol): Symbol = decorateSymbol(sym).getter def setter(clz: Symbol): Symbol = decorateSymbol(sym).setter |