mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Merge pull request #7296 from smores56/proper-try-keyword
Proper `try` keyword
This commit is contained in:
commit
193c23bac8
33 changed files with 1036 additions and 521 deletions
|
@ -699,6 +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::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