Skip to main content

parse_all_files

Function parse_all_files 

Source
pub fn parse_all_files(
    files: &[DiscoveredFile],
    cache: Option<&CacheStore>,
    need_complexity: bool,
) -> ParseResult
Expand description

Parse all files in parallel, extracting imports and exports. Uses the cache to skip reparsing files whose content hasn’t changed.

When need_complexity is true, per-function cyclomatic/cognitive complexity metrics are computed during parsing (needed by the health command). Pass false for dead-code analysis where complexity data is unused.