File tree 1 file changed +11
-14
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -253,20 +253,17 @@ object Decorators {
253
253
*/
254
254
extension (names : List [String ])
255
255
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)
270
267
271
268
extension [T ](x : T )
272
269
def showing [U ](
You can’t perform that action at this time.
0 commit comments