Skip to main content

parse_source_code_with_context

Function parse_source_code_with_context 

Source
pub fn parse_source_code_with_context(
    file_path: &str,
    source: &str,
    language: &str,
    crate_map: &RustCrateMap,
) -> Vec<UcmEvent>
Expand description

Parse source code with project context for cross-file edge resolution.

crate_map maps Rust crate names (underscored) to their src/ directory paths relative to the scan root. For non-Rust languages this is ignored.