Skip to main content

parse_unit_with_warnings

Function parse_unit_with_warnings 

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

parse_unit with the non-fatal diagnostics threaded out alongside the AST (ADR 0117) — see parse_units_with_warnings.