pub struct SymbolResolver { /* private fields */ }Expand description
Symbol resolver for position-based lookups
Implementations§
Source§impl SymbolResolver
impl SymbolResolver
Sourcepub fn index_symbols(&mut self, symbols: Vec<Symbol>)
pub fn index_symbols(&mut self, symbols: Vec<Symbol>)
Index symbols for resolution
Sourcepub fn add_scope(&mut self, scope: SymbolScope)
pub fn add_scope(&mut self, scope: SymbolScope)
Add a scope with symbols
Sourcepub fn resolve_at_position(&self, position: Position) -> Option<Symbol>
pub fn resolve_at_position(&self, position: Position) -> Option<Symbol>
Resolve symbol at position
Sourcepub fn get_symbol(&self, name: &str) -> Option<Symbol>
pub fn get_symbol(&self, name: &str) -> Option<Symbol>
Get symbol by name
Sourcepub fn get_all_symbols(&self) -> Vec<Symbol>
pub fn get_all_symbols(&self) -> Vec<Symbol>
Get all symbols
Sourcepub fn resolve_with_shadowing(&self, position: Position) -> Option<Symbol>
pub fn resolve_with_shadowing(&self, position: Position) -> Option<Symbol>
Handle symbol shadowing - get the most specific symbol at position
Sourcepub fn get_visible_at_position(&self, position: Position) -> Vec<Symbol>
pub fn get_visible_at_position(&self, position: Position) -> Vec<Symbol>
Get all visible symbols at position (for autocomplete, etc.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymbolResolver
impl RefUnwindSafe for SymbolResolver
impl Send for SymbolResolver
impl Sync for SymbolResolver
impl Unpin for SymbolResolver
impl UnwindSafe for SymbolResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more