Skip to main content

diagnose_unlexable

Function diagnose_unlexable 

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

diagnose_unparsable for a file the lexer recovered from (#2807): tokens are the recovering lex’s, lex_errors its errors. They come first in the result, and the syntax errors they caused are left out.