Skip to main content

parse_units_with_recovery

Function parse_units_with_recovery 

Source
pub fn parse_units_with_recovery(
    tokens: &[Token],
    source: &str,
) -> (Vec<SourceUnit>, Vec<CompileError>)
Expand description

parse_unit_with_recovery, keeping every top-level unit instead of discarding all but the first (finding #29/#30). Used by the IDE’s own parse entry point, which needs to see a trailing suite in an atomic commons+suite file, not just the primary declaration.