pub struct CodebaseParser { /* private fields */ }Expand description
High-level codebase parser that combines directory walking with Rust parsing.
This is the main entry point for parsing a Rust codebase. It walks through directories, discovers Rust source files, and parses them to extract structured code information.
Implementations§
Source§impl CodebaseParser
impl CodebaseParser
Sourcepub fn walker_config(self, config: WalkerConfig) -> Self
pub fn walker_config(self, config: WalkerConfig) -> Self
Sets the walker configuration.
Sourcepub fn include_private(self, include: bool) -> Self
pub fn include_private(self, include: bool) -> Self
Sets whether to include private items.
Sourcepub fn continue_on_error(self, continue_on_error: bool) -> Self
pub fn continue_on_error(self, continue_on_error: bool) -> Self
Sets whether to continue parsing when a file has syntax errors.
Sourcepub fn parse_directory<P: AsRef<Path>>(&self, path: P) -> ParseResult<CodeBase>
pub fn parse_directory<P: AsRef<Path>>(&self, path: P) -> ParseResult<CodeBase>
Sourcepub fn parse_file<P: AsRef<Path>>(&self, path: P) -> ParseResult<CodeBase>
pub fn parse_file<P: AsRef<Path>>(&self, path: P) -> ParseResult<CodeBase>
Sourcepub fn parse_source(
&self,
source: &str,
file_path: &str,
) -> ParseResult<CodeBase>
pub fn parse_source( &self, source: &str, file_path: &str, ) -> ParseResult<CodeBase>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodebaseParser
impl RefUnwindSafe for CodebaseParser
impl Send for CodebaseParser
impl Sync for CodebaseParser
impl Unpin for CodebaseParser
impl UnwindSafe for CodebaseParser
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