pub fn analyze_with_parse_result(
config: &ResolvedConfig,
modules: &[ModuleInfo],
) -> Result<AnalysisOutput, FallowError>๐Deprecated since 2.76.0:
fallow_core is internal; use fallow_api::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). Caller-owned modules
are borrowed and are not compacted by this API.
ยงErrors
Returns an error if discovery, graph construction, or analysis fails.