Refactor several parse methods to use more combinators

This commit is contained in:
Joshua Warner 2022-10-31 19:57:20 -07:00
parent dc2500aac2
commit 5d5b71a083
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
12 changed files with 351 additions and 359 deletions

View file

@ -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,