Skip to content

Commit bc35599

Browse files
committed
Rust: rename MacroStmts to MacroBlockExpr
1 parent 869af58 commit bc35599

38 files changed

+381
-375
lines changed

rust/ast-generator/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ fn class_name(type_name: &str) -> String {
2323
"Literal" => "LiteralExpr".to_owned(),
2424
"ArrayExpr" => "ArrayExprInternal".to_owned(),
2525
"AsmOptions" => "AsmOptionsList".to_owned(),
26+
"MacroStmts" => "MacroBlockExpr".to_owned(),
2627
_ if type_name.starts_with("Record") => type_name.replacen("Record", "Struct", 1),
2728
_ if type_name.ends_with("Type") => format!("{}Repr", type_name),
2829
_ => type_name.to_owned(),
@@ -36,6 +37,7 @@ fn property_name(type_name: &str, field_name: &str) -> String {
3637
("MatchExpr", "expr") => "scrutinee",
3738
("Variant", "expr") => "discriminant",
3839
("FieldExpr", "expr") => "container",
40+
("MacroBlockExpr", "expr") => "tail_expr",
3941
(_, "name_ref") => "identifier",
4042
(_, "then_branch") => "then",
4143
(_, "else_branch") => "else_",

rust/extractor/src/generated/.generated.list

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/extractor/src/generated/top.rs

+63-63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/extractor/src/translate/generated.rs

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)