mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
parse closure
This commit is contained in:
parent
f97e8ae7f3
commit
1a7fd57833
4 changed files with 110 additions and 23 deletions
|
@ -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>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue