mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add boolean flag to Expr::If for indented else statement
This commit is contained in:
parent
00572cbc83
commit
a7afac7ac7
8 changed files with 136 additions and 47 deletions
|
@ -710,7 +710,11 @@ impl IterTokens for Loc<Expr<'_>> {
|
|||
Expr::UnaryOp(e1, op) => (op.iter_tokens(arena).into_iter())
|
||||
.chain(e1.iter_tokens(arena))
|
||||
.collect_in(arena),
|
||||
Expr::If(e1, e2) => (e1.iter_tokens(arena).into_iter())
|
||||
Expr::If {
|
||||
if_thens: e1,
|
||||
final_else: e2,
|
||||
..
|
||||
} => (e1.iter_tokens(arena).into_iter())
|
||||
.chain(e2.iter_tokens(arena))
|
||||
.collect_in(arena),
|
||||
Expr::When(e, branches) => (e.iter_tokens(arena).into_iter())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue