diff options
author | Martin Odersky <odersky@gmail.com> | 2015-08-14 18:50:43 -0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-08-15 13:55:31 -0700 |
commit | b30843c59757ccaaf00c6733bf81f15eb911e6c2 (patch) | |
tree | 47ea0667e674f448bff261df665ae5c8a4f660e5 /src/dotty/tools/dotc/core/Decorators.scala | |
parent | 05fb4208c68d194a8575d42852ee1c792a328267 (diff) | |
download | dotty-b30843c59757ccaaf00c6733bf81f15eb911e6c2.tar.gz dotty-b30843c59757ccaaf00c6733bf81f15eb911e6c2.tar.bz2 dotty-b30843c59757ccaaf00c6733bf81f15eb911e6c2.zip |
Fix miniphase assembly.
There were two architectural errors here, which confused TreeTransforms and MiniPhases
and which caused "NotDefinedHere" on transformFollowing:
1. TreeTransforms should not have idx fields, MiniPhases have them.2
2. TreeTransformers initialize arrays of MiniPhases not TreeTransforms.
Diffstat (limited to 'src/dotty/tools/dotc/core/Decorators.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Decorators.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Decorators.scala b/src/dotty/tools/dotc/core/Decorators.scala index d90b959ab..60c019bce 100644 --- a/src/dotty/tools/dotc/core/Decorators.scala +++ b/src/dotty/tools/dotc/core/Decorators.scala @@ -135,7 +135,7 @@ object Decorators { */ implicit class PhaseListDecorator(val names: List[String]) extends AnyVal { def containsPhase(phase: Phase): Boolean = phase match { - case phase: TreeTransformer => phase.transformations.exists(trans => containsPhase(trans.phase)) + case phase: TreeTransformer => phase.miniPhases.exists(containsPhase) case _ => names exists { name => name == "all" || { |