File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,13 @@ object Decorators {
125
125
126
126
/** Implements a test whether a list of strings representing phases contains
127
127
* a given phase. The test returns true if the given phase starts with
128
- * one of the names in the list of strings.
128
+ * one of the names in the list of strings, or if the list of strings
129
+ * contains "all".
129
130
*/
130
131
implicit class PhaseListDecorator (val names : List [String ]) extends AnyVal {
131
132
def containsPhase (phase : Phase ): Boolean = phase match {
132
133
case phase : TreeTransformer => phase.transformations.exists(containsPhase)
133
- case _ => names exists (phase.name.startsWith)
134
+ case _ => names exists (n => n == " all " || phase.name.startsWith(n) )
134
135
}
135
136
}
136
137
You can’t perform that action at this time.
0 commit comments