pub struct SimpleAstParser { /* private fields */ }Expand description
Simple AST parser for import extraction
Implementations§
Source§impl SimpleAstParser
impl SimpleAstParser
Sourcepub fn extract_imports(
&self,
content: &str,
language: ImportLanguage,
) -> Result<Vec<SimpleImport>>
pub fn extract_imports( &self, content: &str, language: ImportLanguage, ) -> Result<Vec<SimpleImport>>
Extract imports from the given content using tree-sitter
Trait Implementations§
Source§impl Debug for SimpleAstParser
impl Debug for SimpleAstParser
Auto Trait Implementations§
impl Freeze for SimpleAstParser
impl RefUnwindSafe for SimpleAstParser
impl Send for SimpleAstParser
impl Sync for SimpleAstParser
impl Unpin for SimpleAstParser
impl UnwindSafe for SimpleAstParser
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