pub struct TypeScriptAnalyzer { /* private fields */ }Expand description
TypeScript/TSX language analyzer using tree-sitter.
Implementations§
Trait Implementations§
Source§impl LanguageAnalyzer for TypeScriptAnalyzer
impl LanguageAnalyzer for TypeScriptAnalyzer
Source§fn file_extensions(&self) -> &[&str]
fn file_extensions(&self) -> &[&str]
File extensions this analyzer handles (e.g., &[“go”])
Source§fn parse_file(&self, path: &Path, content: &str) -> Result<ParsedFile>
fn parse_file(&self, path: &Path, content: &str) -> Result<ParsedFile>
Parse a source file into a ParsedFile.
Source§fn extract_components(&self, parsed: &ParsedFile) -> Vec<Component>
fn extract_components(&self, parsed: &ParsedFile) -> Vec<Component>
Extract architectural components from a parsed file.
Source§fn extract_dependencies(&self, parsed: &ParsedFile) -> Vec<Dependency>
fn extract_dependencies(&self, parsed: &ParsedFile) -> Vec<Dependency>
Extract dependencies (imports, type references, etc.) from a parsed file.
Auto Trait Implementations§
impl Freeze for TypeScriptAnalyzer
impl RefUnwindSafe for TypeScriptAnalyzer
impl Send for TypeScriptAnalyzer
impl Sync for TypeScriptAnalyzer
impl Unpin for TypeScriptAnalyzer
impl UnsafeUnpin for TypeScriptAnalyzer
impl UnwindSafe for TypeScriptAnalyzer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more