aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Run.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-12 16:22:36 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-12 16:22:36 +0100
commit10167c46191c1b02246635b01dcd3d1e0b75497a (patch)
tree344972b494277024b7990c285ef56a24e26e7c00 /src/dotty/tools/dotc/Run.scala
parent5027f018be2879d0db5a13037abe4ac706ffbf42 (diff)
downloaddotty-10167c46191c1b02246635b01dcd3d1e0b75497a.tar.gz
dotty-10167c46191c1b02246635b01dcd3d1e0b75497a.tar.bz2
dotty-10167c46191c1b02246635b01dcd3d1e0b75497a.zip
Check period validity once per run.
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r--src/dotty/tools/dotc/Run.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala
index abee30aab..a182029e6 100644
--- a/src/dotty/tools/dotc/Run.scala
+++ b/src/dotty/tools/dotc/Run.scala
@@ -13,6 +13,9 @@ import scala.reflect.io.VirtualFile
class Run(comp: Compiler)(implicit ctx: Context) {
+ assert(comp.phases.last.last.id <= Periods.MaxPossiblePhaseId)
+ assert(ctx.runId <= Periods.MaxPossibleRunId)
+
var units: List[CompilationUnit] = _
def getSource(fileName: String): SourceFile = {