mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
rename function_call to call_expression
This commit is contained in:
1 parent
a8e42bc78a
commit
7c36c7d9bd
1 file changed
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user