Skip to main content

parse_document_no_diags

Function parse_document_no_diags 

Source
pub fn parse_document_no_diags(source: &str) -> ParsedDoc
Expand description

Parse source without converting parse errors into LSP Diagnostics.

Hot-path callers (workspace scan, the salsa parsed_doc query) discard diagnostics — using this variant skips an O(errors) Vec allocation per file. Callers that actually publish diagnostics call parse_document instead.