Skip to main content

analyze_with_parse_result

Function analyze_with_parse_result 

Source
pub fn analyze_with_parse_result(
    config: &ResolvedConfig,
    modules: &[ModuleInfo],
) -> Result<AnalysisOutput, FallowError>
๐Ÿ‘ŽDeprecated since 2.76.0:

fallow_core is internal; use fallow_cli::programmatic::detect_dead_code instead. NOTE: pre-parsed module reuse is not exposed in the programmatic surface today. See docs/fallow-core-migration.md and ADR-008.

Expand description

Run the analysis pipeline using pre-parsed modules, skipping the parsing stage.

This avoids re-parsing files when the caller already has a ParseResult (e.g., from fallow_core::extract::parse_all_files). Discovery, plugins, scripts, entry points, import resolution, graph construction, and dead code detection still run normally. The graph is always retained (needed for file scores).

ยงErrors

Returns an error if discovery, graph construction, or analysis fails.