Skip to content

Commit 3cd057f

Browse files
committed
Rust: Remove Resolvable from the schema.
1 parent a8f7f74 commit 3cd057f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

rust/schema/annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class _:
252252
attrs: drop
253253

254254

255-
@annotate(MethodCallExpr, replace_bases={Expr: CallExprBase}, add_bases=(Resolvable,), cfg=True)
255+
@annotate(MethodCallExpr, replace_bases={Expr: CallExprBase}, cfg=True)
256256
class _:
257257
"""
258258
A method call expression. For example:

rust/schema/prelude.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,7 @@ class Addressable(AstNode):
9191
"One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal
9292

9393

94-
class Resolvable(AstNode):
95-
"""
96-
One of `PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat` or `MethodCallExpr`.
97-
"""
98-
resolved_path: optional[string] | rust.detach | ql.internal
99-
resolved_crate_origin: optional[string] | rust.detach | ql.internal
100-
101-
102-
class PathAstNode(Resolvable):
94+
class PathAstNode(AstNode):
10395
"""
10496
An AST element wrapping a path (`PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat`).
10597
"""

0 commit comments

Comments
 (0)