[ty] Implemented partial support for "find references" language server feature. (#19475)

This PR adds basic support for the "find all references" language server feature.

---------

Co-authored-by: UnboundVariable <unbound@gmail.com>
This commit is contained in:
UnboundVariable 2025-07-23 09:16:22 -07:00 committed by GitHub
parent 89258f1938
commit fa1df4cedc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1468 additions and 169 deletions

View file

@ -235,12 +235,7 @@ impl TraversalSignal {
}
pub fn walk_annotation<'a, V: SourceOrderVisitor<'a> + ?Sized>(visitor: &mut V, expr: &'a Expr) {
let node = AnyNodeRef::from(expr);
if visitor.enter_node(node).is_traverse() {
visitor.visit_expr(expr);
}
visitor.leave_node(node);
visitor.visit_expr(expr);
}
pub fn walk_decorator<'a, V>(visitor: &mut V, decorator: &'a Decorator)