Parser - Cleaning up after field removal
This commit is contained in:
parent
46389d2962
commit
36c842d7ab
1 changed files with 1 additions and 1 deletions
|
@ -683,7 +683,7 @@ impl Parser {
|
||||||
Ok(ast::ExprNode::Grouping {
|
Ok(ast::ExprNode::Grouping {
|
||||||
expression: Box::new(expr),
|
expression: Box::new(expr),
|
||||||
})
|
})
|
||||||
} else if let Some(token) = self.expect(&[TokenType::Fun]) {
|
} else if self.expect(&[TokenType::Fun]).is_some() {
|
||||||
let (params, body) = self.parse_function_info(FunctionKind::Lambda)?;
|
let (params, body) = self.parse_function_info(FunctionKind::Lambda)?;
|
||||||
Ok(ast::ExprNode::Lambda { params, body })
|
Ok(ast::ExprNode::Lambda { params, body })
|
||||||
} else if let Some(token) =
|
} else if let Some(token) =
|
||||||
|
|
Loading…
Reference in a new issue