pub struct AnalyzePipeline { /* private fields */ }Expand description
The core pipeline: parse a codebase and enrich with git metrics.
Called by both CLI and MCP presentation layers.
Implementations§
Source§impl AnalyzePipeline
impl AnalyzePipeline
pub fn new( registry: ParserRegistry, enricher: Box<dyn Enricher>, repo_path: PathBuf, ) -> Self
pub fn with_strip_prefix(self, prefix: String) -> Self
Sourcepub fn list_parsers(&self) -> Vec<(&str, &[&str])>
pub fn list_parsers(&self) -> Vec<(&str, &[&str])>
List all registered parsers as (name, extensions) pairs.
Sourcepub fn parse_only(&self, config: &AnalyzeConfig) -> Result<String, Error>
pub fn parse_only(&self, config: &AnalyzeConfig) -> Result<String, Error>
Parse only: discover files → parse → build edges → JSON string (no enrichment).
Sourcepub fn run_raw(&self, config: &AnalyzeConfig) -> Result<AstData, Error>
pub fn run_raw(&self, config: &AnalyzeConfig) -> Result<AstData, Error>
Run the full pipeline: discover files → parse → enrich → return AstData.
Sourcepub fn run(&self, config: &AnalyzeConfig) -> Result<String, Error>
pub fn run(&self, config: &AnalyzeConfig) -> Result<String, Error>
Run the full pipeline and serialize to JSON string.
The internal domain model is converted to the public schema
(codedash_schemas::AstData) before serialization (ACL boundary).
Auto Trait Implementations§
impl Freeze for AnalyzePipeline
impl !RefUnwindSafe for AnalyzePipeline
impl Send for AnalyzePipeline
impl Sync for AnalyzePipeline
impl Unpin for AnalyzePipeline
impl UnsafeUnpin for AnalyzePipeline
impl !UnwindSafe for AnalyzePipeline
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