Rust: rename MacroStmts to MacroBlockExpr

This commit is contained in:
Arthur Baars
2025-05-02 14:47:59 +02:00
parent 869af58c9d
commit bc35599f1a
38 changed files with 381 additions and 375 deletions

View File

@@ -1289,7 +1289,7 @@ class _:
"""
@annotate(MacroStmts, replace_bases={AstNode: Expr}, cfg=True)
@annotate(MacroBlockExpr, replace_bases={AstNode: Expr}, cfg=True)
@rust.doc_test_signature(None)
class _:
"""

4
rust/schema/ast.py generated
View File

@@ -397,8 +397,8 @@ class MacroRules(Item, ):
token_tree: optional["TokenTree"] | child
visibility: optional["Visibility"] | child
class MacroStmts(AstNode, ):
expr: optional["Expr"] | child
class MacroBlockExpr(AstNode, ):
tail_expr: optional["Expr"] | child
statements: list["Stmt"] | child
class MacroTypeRepr(TypeRepr, ):