void Error(SyntaxNode node, SyntaxDiagnosticKind kind, SourceLocation location, string message) { var diag = new SyntaxDiagnostic(kind, SyntaxDiagnosticSeverity.Error, location, message, ImmutableArray <(SourceLocation, string)> .Empty); node.AddDiagnostic(diag); _diagnostics.Add(diag); }
internal void AddDiagnostic(SyntaxDiagnostic diagnostic) { Diagnostics = Diagnostics.Add(diagnostic); }
void Error(SyntaxDiagnosticKind kind, SourceLocation location, string message) { _currentDiagnostics.Add(new SyntaxDiagnostic(kind, SyntaxDiagnosticSeverity.Error, location, message, ImmutableArray <(SourceLocation, string)> .Empty)); }