diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-12-01 17:07:25 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-12-01 17:07:25 -0800 |
commit | ce157cb468a6940d22246677e8ab2d1e67150d6c (patch) | |
tree | 6d252a9fe6759a579215be10febbd6a68cf2fdd8 /src/compiler/scala/tools/nsc/Global.scala | |
parent | 1810ac0bf47dcc40cc858f7a3c64356614f98110 (diff) | |
download | scala-ce157cb468a6940d22246677e8ab2d1e67150d6c.tar.gz scala-ce157cb468a6940d22246677e8ab2d1e67150d6c.tar.bz2 scala-ce157cb468a6940d22246677e8ab2d1e67150d6c.zip |
SI-7683 Enable -Ystop-before:typer
Allows a plugin to run before typer without incurring typechecking.
The test is that a plugin doesn't run when stopping after parser,
and that the truncated compilation run also succeeds, since
updating check files for the output of -Xshow-phases is tedious.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 430424d0f8..e62dfd00a6 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -1590,10 +1590,9 @@ class Global(var currentSettings: Settings, var reporter: Reporter) } } - /** Reset package class to state at typer (not sure what this - * is needed for?) + /** Reset package class to state at typer (not sure what this is needed for?) */ - private def resetPackageClass(pclazz: Symbol) { + private def resetPackageClass(pclazz: Symbol): Unit = if (typerPhase != NoPhase) { enteringPhase(firstPhase) { pclazz.setInfo(enteringPhase(typerPhase)(pclazz.info)) } |