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).