diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-09-05 15:22:09 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-09-05 15:22:09 +0000 |
commit | 8eef9983c1e79a9b399d39616a4f2f5df35f0b65 (patch) | |
tree | 85e7dc3bbd9faaa6a2b32994cad9fdca0fb3c03b /src/compiler/scala | |
parent | 5d0ff3c25ee91272fb945c17d182cf4145917d6b (diff) | |
download | scala-8eef9983c1e79a9b399d39616a4f2f5df35f0b65.tar.gz scala-8eef9983c1e79a9b399d39616a4f2f5df35f0b65.tar.bz2 scala-8eef9983c1e79a9b399d39616a4f2f5df35f0b65.zip |
Readjusted when -Ycheck:phase operates to get a...
Readjusted when -Ycheck:phase operates to get around the problem with
erasedTypes.
Diffstat (limited to 'src/compiler/scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 8 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/icode/Checkers.scala | 2 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 8eb42292d1..b942d81591 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -586,9 +586,11 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable if (settings.browse contains globalPhase.name) treeBrowser.browse(units) informTime(globalPhase.description, startTime) - if ((settings.check contains globalPhase.name) || + globalPhase = globalPhase.next + + if ((settings.check contains globalPhase.prev.name) || (settings.check contains "all")) { - if (globalPhase.checkable) { + if (globalPhase.prev.checkable) { phase = globalPhase if (globalPhase.id >= icodePhase.id) icodeChecker.checkICodes else checker.checkTrees @@ -596,7 +598,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable warning("It is not possible to check the result of the "+globalPhase.name+" phase") } } - globalPhase = globalPhase.next + if (settings.statistics.value) statistics.print(phase) advancePhase } diff --git a/src/compiler/scala/tools/nsc/backend/icode/Checkers.scala b/src/compiler/scala/tools/nsc/backend/icode/Checkers.scala index 76a79ef781..23cc47f06a 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/Checkers.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/Checkers.scala @@ -71,7 +71,7 @@ abstract class Checkers { def checkICodes: Unit = { if (settings.verbose.value) - Console.println("[[consistency check at end of phase " + globalPhase.name + "]]") + Console.println("[[consistency check at the beginning of phase " + globalPhase.name + "]]") classes.values foreach check } diff --git a/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala b/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala index 077b66035f..8fbd2f7ae0 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala @@ -17,7 +17,7 @@ abstract class TreeCheckers extends Analyzer { def checkTrees { if (settings.verbose.value) - Console.println("[consistency check at end of phase " + phase + "]") + Console.println("[consistency check at the beginning of phase " + phase + "]") for (unit <- currentRun.units) check(unit) } |