We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CallExpr
ParenArgsExpr
1 parent 4198cf9 commit fa93dd8Copy full SHA for fa93dd8
rust/ast-generator/src/main.rs
@@ -22,6 +22,7 @@ fn class_name(type_name: &str) -> String {
22
"ArrayExpr" => "ArrayExprInternal".to_owned(),
23
"AsmOptions" => "AsmOptionsList".to_owned(),
24
"MacroStmts" => "MacroBlockExpr".to_owned(),
25
+ "CallExpr" => "ParenArgsExpr".to_owned(),
26
_ if type_name.starts_with("Record") => type_name.replacen("Record", "Struct", 1),
27
_ if type_name.ends_with("Type") => format!("{type_name}Repr"),
28
_ => type_name.to_owned(),
@@ -30,7 +31,7 @@ fn class_name(type_name: &str) -> String {
30
31
32
fn property_name(type_name: &str, field_name: &str) -> String {
33
let name = match (type_name, field_name) {
- ("CallExpr", "expr") => "function",
34
+ ("ParenArgsExpr", "expr") => "base",
35
("LetExpr", "expr") => "scrutinee",
36
("MatchExpr", "expr") => "scrutinee",
37
("Variant", "expr") => "discriminant",
rust/schema/annotations.py
@@ -228,10 +228,10 @@ class _:
228
loop_body: drop
229
230
231
-@annotate(CallExpr, cfg=True)
+@annotate(ParenArgsExpr, cfg=True)
232
class _:
233
"""
234
- A call expression. For example:
+ An expression with parenthesized arguments. For example:
235
```rust
236
foo(42);
237
foo::<u32, u64>(42);
0 commit comments