pub fn classify_recovery_salvage(
ast: &Node,
diagnostics: &[ParseError],
) -> RecoverySalvageMetricsExpand description
Compute RecoverySalvageMetrics for a parsed AST and its diagnostics.
Walks the AST counting NodeKind::Error nodes, recording the earliest
error message by start offset, and partitions diagnostics into recovered
vs unrecovered counts.