mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: make MacroStmts a CFG Expr
This commit is contained in:
@@ -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 _:
|
||||
|
||||
Reference in New Issue
Block a user