pub struct GlobalSymbolTable { /* private fields */ }Expand description
Global symbol table that stores symbols across the entire workspace.
Implementations§
Source§impl GlobalSymbolTable
impl GlobalSymbolTable
Sourcepub fn update_file_symbols(&self, uri: String, symbols: Vec<SymbolInformation>)
pub fn update_file_symbols(&self, uri: String, symbols: Vec<SymbolInformation>)
Add or update symbols for a file.
Sourcepub fn lookup(&self, fqn: &str) -> Option<SymbolInformation>
pub fn lookup(&self, fqn: &str) -> Option<SymbolInformation>
Lookup a symbol by its fully qualified name.
Sourcepub fn query_file(&self, uri: &str) -> Vec<SymbolInformation>
pub fn query_file(&self, uri: &str) -> Vec<SymbolInformation>
Get all symbols defined in a specific file.
Sourcepub fn query(&self, query: &str) -> Vec<SymbolInformation>
pub fn query(&self, query: &str) -> Vec<SymbolInformation>
Find all symbols matching a query (for workspace/symbol).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlobalSymbolTable
impl !RefUnwindSafe for GlobalSymbolTable
impl Send for GlobalSymbolTable
impl Sync for GlobalSymbolTable
impl Unpin for GlobalSymbolTable
impl UnsafeUnpin for GlobalSymbolTable
impl UnwindSafe for GlobalSymbolTable
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