mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 11:45:00 +03:00
clean up a tad
This commit is contained in:
parent
1cbbee4517
commit
eb15269437
@ -286,14 +286,12 @@ impl<'ast> From<SelfPostfixExpression<'ast>> for Expression {
|
||||
|
||||
// Handle calls, should only ever come after self. or self::
|
||||
match expression.call {
|
||||
Some(function) => {
|
||||
return Expression::Call(CallExpression {
|
||||
function: Box::new(final_expression),
|
||||
arguments: function.expressions.into_iter().map(Expression::from).collect(),
|
||||
span: Span::from(function.span),
|
||||
});
|
||||
}
|
||||
None => return final_expression,
|
||||
Some(function) => Expression::Call(CallExpression {
|
||||
function: Box::new(final_expression),
|
||||
arguments: function.expressions.into_iter().map(Expression::from).collect(),
|
||||
span: Span::from(function.span),
|
||||
}),
|
||||
None => final_expression,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user