public static void ReportVariableNotDeclared(this ICollection<Diagnostic> diagnostics, SyntaxToken name) { diagnostics.Report(name.Span, DiagnosticId.UndeclaredVariable, name.ValueText); }