diff options
author | Martin Odersky <odersky@gmail.com> | 2014-02-10 11:10:20 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-02-10 11:13:34 +0100 |
commit | 18ae13dcf4f5d40d528e2bcf43a19e84bf475084 (patch) | |
tree | 8728df0e05fbec0bbe1451196a987c5e446d3f5e /src/dotty/tools/dotc/Compiler.scala | |
parent | f4e9a881a561e28900becc7deea520b43e57fb31 (diff) | |
download | dotty-18ae13dcf4f5d40d528e2bcf43a19e84bf475084.tar.gz dotty-18ae13dcf4f5d40d528e2bcf43a19e84bf475084.tar.bz2 dotty-18ae13dcf4f5d40d528e2bcf43a19e84bf475084.zip |
Make Definitions load all symbols in current runId.
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r-- | src/dotty/tools/dotc/Compiler.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala index 1172143cd..f6723ddf4 100644 --- a/src/dotty/tools/dotc/Compiler.scala +++ b/src/dotty/tools/dotc/Compiler.scala @@ -16,7 +16,7 @@ class Compiler { def nextRunId = { runId += 1; runId } def rootContext(implicit ctx: Context): Context = { - ctx.definitions.init() + ctx.definitions.init(ctx) ctx.usePhases(phases) val start = ctx.fresh .withPeriod(Period(nextRunId, FirstPhaseId)) @@ -24,6 +24,7 @@ class Compiler { .withTyper(new Typer) .withNewMode(Mode.ImplicitsEnabled) .withTyperState(new MutableTyperState(ctx.typerState, new ConsoleReporter()(ctx), isCommittable = true)) + ctx.definitions.init(start) def addImport(ctx: Context, sym: Symbol) = ctx.fresh.withImportInfo(ImportInfo.rootImport(sym)(ctx)) (start.withRunInfo(new RunInfo(start)) /: defn.RootImports)(addImport) |