Rust: make MacroStmts a CFG Expr

This commit is contained in:
Arthur Baars
2025-04-17 18:57:26 +02:00
parent 4ca98ba816
commit 9ca6706550
16 changed files with 267 additions and 190 deletions

View File

@@ -87,7 +87,8 @@ class _:
foo::bar;
```
"""
segment: _ | ql.db_table_name("path_segments_") | doc("last segment of this path")
segment: _ | ql.db_table_name("path_segments_") | doc(
"last segment of this path")
@annotate(GenericArgList)
@@ -1288,7 +1289,7 @@ class _:
"""
@annotate(MacroStmts)
@annotate(MacroStmts, replace_bases={AstNode: Expr}, cfg=True)
@rust.doc_test_signature(None)
class _:
"""
@@ -1447,6 +1448,7 @@ class _:
type_repr: optional["TypeRepr"] | child | rust.detach
trait_type_repr: optional["PathTypeRepr"] | child | rust.detach
@annotate(PathTypeRepr)
@qltest.test_with(Path)
class _: