Skip to main content

parse_source

Function parse_source 

Source
pub fn parse_source(
    path: &Path,
    source: &str,
    min_node_count: usize,
    min_line_count: usize,
) -> Result<Vec<CodeUnit>, String>
Expand description

Parse Rust source code and extract code units.

This is the core parsing entry point used by RustAnalyzer. path is used for diagnostics and naming only. Test code is always included but tagged with is_test: true; filtering is handled by the caller.