@@ -27,13 +27,11 @@ object Phases {
2727 inline def phaseOf (id : PhaseId )(using Context ): Phase =
2828 ctx.base.phases(id)
2929
30- def currentlyAfterTyper (using Context ): Boolean = ctx.base.isAfterTyper(currentPhase)
31-
3230 trait PhasesBase {
3331 this : ContextBase =>
3432
3533 // drop NoPhase at beginning
36- def allPhases : Array [Phase ] = (if (squashedPhases .nonEmpty) squashedPhases else phases).tail
34+ def allPhases : Array [Phase ] = (if (fusedPhases .nonEmpty) fusedPhases else phases).tail
3735
3836 object NoPhase extends Phase {
3937 override def exists : Boolean = false
@@ -63,12 +61,12 @@ object Phases {
6361 * Each TreeTransform gets own period,
6462 * whereas a combined TreeTransformer gets period equal to union of periods of it's TreeTransforms
6563 */
66- final def squashPhases (phasess : List [List [Phase ]],
64+ final def fusePhases (phasess : List [List [Phase ]],
6765 phasesToSkip : List [String ],
6866 stopBeforePhases : List [String ],
6967 stopAfterPhases : List [String ],
7068 YCheckAfter : List [String ])(using Context ): List [Phase ] = {
71- val squashedPhases = ListBuffer [Phase ]()
69+ val fusedPhases = ListBuffer [Phase ]()
7270 var prevPhases : Set [String ] = Set .empty
7371 val YCheckAll = YCheckAfter .contains(" all" )
7472
@@ -111,17 +109,17 @@ object Phases {
111109 prevPhases += phase.phaseName
112110 phase
113111 }
114- squashedPhases += phaseToAdd
112+ fusedPhases += phaseToAdd
115113 val shouldAddYCheck = YCheckAfter .containsPhase(phaseToAdd) || YCheckAll
116114 if (shouldAddYCheck) {
117115 val checker = new TreeChecker
118- squashedPhases += checker
116+ fusedPhases += checker
119117 }
120118 }
121119
122120 i += 1
123121 }
124- squashedPhases .toList
122+ fusedPhases .toList
125123 }
126124
127125 /** Use the following phases in the order they are given.
@@ -192,9 +190,9 @@ object Phases {
192190 }
193191
194192 if (squash)
195- this .squashedPhases = (NoPhase :: phasess).toArray
193+ this .fusedPhases = (NoPhase :: phasess).toArray
196194 else
197- this .squashedPhases = this .phases
195+ this .fusedPhases = this .phases
198196
199197 config.println(s " Phases = ${phases.toList}" )
200198 config.println(s " nextDenotTransformerId = ${nextDenotTransformerId.toList}" )
@@ -421,7 +419,7 @@ object Phases {
421419 def flattenPhase (using Context ): Phase = ctx.base.flattenPhase
422420 def genBCodePhase (using Context ): Phase = ctx.base.genBCodePhase
423421
424- def curPhases (using Context ): Array [Phase ] = ctx.base.phases
422+ def unfusedPhases (using Context ): Array [Phase ] = ctx.base.phases
425423
426424 /** Replace all instances of `oldPhaseClass` in `current` phases
427425 * by the result of `newPhases` applied to the old phase.
0 commit comments