Skip to main content

parse_new_with_errors

Function parse_new_with_errors 

Source
pub fn parse_new_with_errors(
    source: &str,
) -> Result<(Program, Vec<ParseError>), ParseError>
Expand description

Parse with error recovery: returns a (possibly partial) AST and all errors. The parser skips to the next ; on error and continues, collecting all diagnostics.