mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Refactor several parse methods to use more combinators
This commit is contained in:
parent
dc2500aac2
commit
5d5b71a083
12 changed files with 351 additions and 359 deletions
|
@ -1384,7 +1384,7 @@ fn to_when_report<'a>(
|
|||
EWhen::IfToken(_pos) => unreachable!("the if-token is optional"),
|
||||
EWhen::When(_pos) => unreachable!("another branch would be taken"),
|
||||
|
||||
EWhen::Is(pos) | EWhen::IndentIs(pos) => to_unfinished_when_report(
|
||||
EWhen::Is(pos) => to_unfinished_when_report(
|
||||
alloc,
|
||||
lines,
|
||||
filename,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue