mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Update parse.rs
This commit is contained in:
parent
c0be75a6c7
commit
ec0899ff91
1 changed files with 1 additions and 5 deletions
|
@ -1061,11 +1061,7 @@ impl Parser {
|
|||
.map_err(|_| self.stack_dec())?
|
||||
{
|
||||
let ident = Identifier::new(Some(vis), VarName::new(symbol));
|
||||
let mut call = Expr::Call(Call::new(obj, Some(ident), args));
|
||||
while let Some(res) = self.opt_reduce_args(false) {
|
||||
let args = res.map_err(|_| self.stack_dec())?;
|
||||
call = call.call_expr(args);
|
||||
}
|
||||
let call = Expr::Call(Call::new(obj, Some(ident), args));
|
||||
stack.push(ExprOrOp::Expr(call));
|
||||
} else {
|
||||
let ident = Identifier::new(Some(vis), VarName::new(symbol));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue