pub fn compute_parse_error_diagnostics(errors: Vec<Error>) -> Vec<Diagnostic>