parse closure

This commit is contained in:
Folkert 2021-02-25 02:03:47 +01:00
parent f97e8ae7f3
commit 1a7fd57833
4 changed files with 110 additions and 23 deletions

View file

@ -26,11 +26,8 @@ pub enum PatternType {
pub fn loc_closure_param<'a>(
min_indent: u16,
) -> impl Parser<'a, Located<Pattern<'a>>, SyntaxError<'a>> {
specialize(
|e, _, _| SyntaxError::Pattern(e),
move |arena, state| parse_closure_param(arena, state, min_indent),
)
) -> impl Parser<'a, Located<Pattern<'a>>, EPattern<'a>> {
move |arena, state| parse_closure_param(arena, state, min_indent)
}
fn parse_closure_param<'a>(