Example #1
0
                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);
                }
Example #2
0
 void Error(SyntaxDiagnosticKind kind, SourceLocation location, string message)
 {
     _currentDiagnostics.Add(new SyntaxDiagnostic(kind, SyntaxDiagnosticSeverity.Error, location, message,
                                                  ImmutableArray <(SourceLocation, string)> .Empty));
 }