mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: add extended canonical paths on enum variants
This commit is contained in:
@@ -73,6 +73,20 @@ class Callable(AstNode):
|
||||
attrs: list["Attr"] | child
|
||||
|
||||
|
||||
class Addressable(AstNode):
|
||||
"""
|
||||
Something that can be addressed by a path.
|
||||
|
||||
TODO: This does not yet include all possible cases.
|
||||
"""
|
||||
extended_canonical_path: optional[string] | desc("""
|
||||
Either a canonical path (see https://doc.rust-lang.org/reference/paths.html#canonical-paths),
|
||||
or `{<block id>}::name` for addressable items defined in an anonymous block (and only
|
||||
addressable there-in).
|
||||
""") | rust.detach | ql.internal
|
||||
crate_origin: optional[string] | desc("One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal
|
||||
|
||||
|
||||
class Resolvable(AstNode):
|
||||
"""
|
||||
Either a `Path`, or a `MethodCallExpr`.
|
||||
|
||||
Reference in New Issue
Block a user