Ejemplo n.º 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);
                }
Ejemplo n.º 2
0
 internal void AddDiagnostic(SyntaxDiagnostic diagnostic)
 {
     Diagnostics = Diagnostics.Add(diagnostic);
 }
Ejemplo n.º 3
0
 void Error(SyntaxDiagnosticKind kind, SourceLocation location, string message)
 {
     _currentDiagnostics.Add(new SyntaxDiagnostic(kind, SyntaxDiagnosticSeverity.Error, location, message,
                                                  ImmutableArray <(SourceLocation, string)> .Empty));
 }