From 3cd057fe39ebd99deb3acd9c666207017e721eb2 Mon Sep 17 00:00:00 2001 From: Geoffrey White <40627776+geoffw0@users.noreply.github.com> Date: Tue, 26 Aug 2025 16:44:50 +0100 Subject: [PATCH] Rust: Remove Resolvable from the schema. --- rust/schema/annotations.py | 2 +- rust/schema/prelude.py | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) 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`). """