mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Use new try impl for ? operator
This commit is contained in:
parent
193c23bac8
commit
de626102c8
20 changed files with 429 additions and 110 deletions
|
@ -699,7 +699,7 @@ impl IterTokens for Loc<Expr<'_>> {
|
|||
.chain(e2.iter_tokens(arena))
|
||||
.collect_in(arena),
|
||||
Expr::Try => onetoken(Token::Keyword, region, arena),
|
||||
Expr::LowLevelTry(e1) => e1.iter_tokens(arena),
|
||||
Expr::LowLevelTry(e1, _) => e1.iter_tokens(arena),
|
||||
Expr::Apply(e1, e2, _called_via) => (e1.iter_tokens(arena).into_iter())
|
||||
.chain(e2.iter_tokens(arena))
|
||||
.collect_in(arena),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue