Skip to main content

parse_with_diagnostics

Function parse_with_diagnostics 

Source
pub fn parse_with_diagnostics(input: &str) -> ParseResult
Expand description

Parse input with error recovery: collects multiple diagnostics and returns a partial AST when errors occur. Use this for language servers so the user sees all parse errors and features (e.g. hover) can use the partial AST.