diff --git a/rust/schema/annotations.py b/rust/schema/annotations.py index 7313255b144..eb651b4944f 100644 --- a/rust/schema/annotations.py +++ b/rust/schema/annotations.py @@ -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: diff --git a/rust/schema/prelude.py b/rust/schema/prelude.py index 62334b2d864..c7928910094 100644 --- a/rust/schema/prelude.py +++ b/rust/schema/prelude.py @@ -91,15 +91,7 @@ class Addressable(AstNode): "One of `rustc:`, `repo::` or `lang:`.") | 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`). """