pub struct SemanticIndex { /* private fields */ }
Expand description
Semantic index for code intelligence
Implementations§
Source§impl SemanticIndex
impl SemanticIndex
Sourcepub fn index_ast(&mut self, path: &Path, ast: &ParsedAst) -> AstResult<()>
pub fn index_ast(&mut self, path: &Path, ast: &ParsedAst) -> AstResult<()>
Index an AST for semantic information
Sourcepub fn get_call_graph(&self, path: &Path, function_name: &str) -> Vec<Symbol>
pub fn get_call_graph(&self, path: &Path, function_name: &str) -> Vec<Symbol>
Get call graph for a function
Sourcepub fn get_file_symbols(&self, path: &Path) -> Vec<Symbol>
pub fn get_file_symbols(&self, path: &Path) -> Vec<Symbol>
Get symbols defined in a file
Trait Implementations§
Source§impl Debug for SemanticIndex
impl Debug for SemanticIndex
Auto Trait Implementations§
impl Freeze for SemanticIndex
impl !RefUnwindSafe for SemanticIndex
impl Send for SemanticIndex
impl Sync for SemanticIndex
impl Unpin for SemanticIndex
impl UnwindSafe for SemanticIndex
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