File tree 3 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/parsing
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2478,7 +2478,7 @@ object Parsers {
2478
2478
else Nil
2479
2479
2480
2480
/** Enumerator ::= Generator
2481
- * | Guard
2481
+ * | Guard {Guard}
2482
2482
* | Pattern1 `=' Expr
2483
2483
*/
2484
2484
def enumerator (): Tree =
Original file line number Diff line number Diff line change @@ -280,9 +280,9 @@ ForExpr ::= ‘for’ ‘(’ Enumerators0 ‘)’ {nl} [‘do‘ |
280
280
Enumerators0 ::= {nl} Enumerators [semi]
281
281
Enumerators ::= Generator {semi Enumerator | Guard}
282
282
Enumerator ::= Generator
283
- | Guard
283
+ | Guard {Guard}
284
284
| Pattern1 ‘=’ Expr GenAlias(pat, expr)
285
- Generator ::= [‘case’] Pattern1 ‘<-’ Expr GenFrom(pat, expr)
285
+ Generator ::= [‘case’] Pattern1 ‘<-’ Expr GenFrom(pat, expr)
286
286
Guard ::= ‘if’ PostfixExpr
287
287
288
288
CaseClauses ::= CaseClause { CaseClause } Match(EmptyTree, cases)
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ ForExpr ::= ‘for’ ‘(’ Enumerators0 ‘)’ {nl} [‘do‘ |
273
273
Enumerators0 ::= {nl} Enumerators [semi]
274
274
Enumerators ::= Generator {semi Enumerator | Guard}
275
275
Enumerator ::= Generator
276
- | Guard
276
+ | Guard {Guard}
277
277
| Pattern1 ‘=’ Expr
278
278
Generator ::= [‘case’] Pattern1 ‘<-’ Expr
279
279
Guard ::= ‘if’ PostfixExpr
You can’t perform that action at this time.
0 commit comments