rename function_call to call_expression

This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2026-01-28 12:00:35 +01:00
1 parent a8e42bc78a
commit 7c36c7d9bd
1 file changed
+3 -3
+3 -3
View File
@@ -794,7 +794,7 @@ impl Parser {
/// Expects [`Rule::PrimaryExpr`] or [`Rule::SingularExpr`] on top; does not pop it.
/// Expects `name` to be consumed (not in lexer).
fn function_call<'a>(
fn call_expression<'a>(
&mut self,
lexer: &mut Lexer<'a>,
name: &'a str,
@@ -951,10 +951,10 @@ impl Parser {
}
} else if let Token::Paren('(') = lexer.peek().0 {
self.pop_rule_span(lexer);
return self.function_call(lexer, word, span, ctx);
return self.call_expression(lexer, word, span, ctx);
} else if ["bitcast", "coopLoad"].contains(&word) {
self.pop_rule_span(lexer);
return self.function_call(lexer, word, span, ctx);
return self.call_expression(lexer, word, span, ctx);
} else {
let ident = self.ident_expr(word, span, ctx);
ast::Expression::Ident(ident)