Skip to main content

parse_file

Function parse_file 

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

Parse a single Rust file and extract code units.

This is a lower-level convenience function. Prefer using crate::rust::rust_analyzer::RustAnalyzer with crate::analysis::analyze for the full pipeline.