Skip to main content

collect_error_nodes_with_source

Function collect_error_nodes_with_source 

Source
pub fn collect_error_nodes_with_source(
    tree: &Tree,
    source: &str,
) -> Vec<SyntaxDiagnostic>
Expand description

Like collect_error_nodes, but also takes the original source text so that ERROR diagnostics can include a snippet of the unexpected text, in addition to the syntactic context (surrounding directive/node kind).