pub struct FileAnalyzer { /* private fields */ }
Expand description
File analysis using tree-sitter
Implementations§
Source§impl FileAnalyzer
impl FileAnalyzer
pub fn new() -> Self
pub async fn analyze_file( &self, path: &Path, cursor: Option<Position>, ) -> RazResult<FileContext>
pub fn extract_module_path(path: &Path) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileAnalyzer
impl RefUnwindSafe for FileAnalyzer
impl Send for FileAnalyzer
impl Sync for FileAnalyzer
impl Unpin for FileAnalyzer
impl UnwindSafe for FileAnalyzer
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