Rust: Remove Resolvable from the schema.

This commit is contained in:
Geoffrey White
2025-08-26 16:44:50 +01:00
parent a8f7f74812
commit 3cd057fe39
2 changed files with 2 additions and 10 deletions

View File

@@ -252,7 +252,7 @@ class _:
attrs: drop
@annotate(MethodCallExpr, replace_bases={Expr: CallExprBase}, add_bases=(Resolvable,), cfg=True)
@annotate(MethodCallExpr, replace_bases={Expr: CallExprBase}, cfg=True)
class _:
"""
A method call expression. For example:

View File

@@ -91,15 +91,7 @@ class Addressable(AstNode):
"One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal
class Resolvable(AstNode):
"""
One of `PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat` or `MethodCallExpr`.
"""
resolved_path: optional[string] | rust.detach | ql.internal
resolved_crate_origin: optional[string] | rust.detach | ql.internal
class PathAstNode(Resolvable):
class PathAstNode(AstNode):
"""
An AST element wrapping a path (`PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat`).
"""