pub fn parse_units_with_warnings(
tokens: &[Token],
source: &str,
) -> Result<(Vec<SourceUnit>, Vec<CompileError>), Vec<CompileError>>Expand description
parse_units with the non-fatal diagnostics threaded out alongside the
AST (ADR 0117): a successful parse returns Ok((units, warnings)) instead
of hard-failing on a warning-severity diagnostic (an orphan doc block used
to abort file discovery and throw the good AST away). A failed parse still
returns every diagnostic — errors then warnings — in the Err.