File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -253,20 +253,17 @@ object Decorators {
253253 */
254254 extension (names : List [String ])
255255 def containsPhase (phase : Phase ): Boolean =
256- names.nonEmpty && {
257- phase match {
258- case phase : MegaPhase => phase.miniPhases.exists(names.containsPhase)
259- case _ =>
260- names.exists { name =>
261- name == " all" || {
262- val strippedName = name.stripSuffix(" +" )
263- val logNextPhase = name != strippedName
264- phase.phaseName.startsWith(strippedName) ||
265- (logNextPhase && phase.prev.phaseName.startsWith(strippedName))
266- }
267- }
268- }
269- }
256+ names.nonEmpty &&
257+ phase.match
258+ case phase : MegaPhase => phase.miniPhases.exists(containsPhase)
259+ case _ =>
260+ names.exists:
261+ case " all" => true
262+ case name =>
263+ val strippedName = name.stripSuffix(" +" )
264+ val logNextPhase = name != strippedName
265+ phase.phaseName.startsWith(strippedName)
266+ || logNextPhase && phase.prev.phaseName.startsWith(strippedName)
270267
271268 extension [T ](x : T )
272269 def showing [U ](
You can’t perform that action at this time.
0 commit comments