49 references to GetDiagnostics
Microsoft.CodeAnalysis (9)
Syntax\GreenNode.cs (2)
1043if (GetDiagnostics() == null) 1050errorInfos = GetDiagnostics();
Syntax\GreenNodeExtensions.cs (1)
117var current = node.GetDiagnostics();
Syntax\InternalSyntax\SyntaxDiagnosticInfoList.cs (1)
76var diags = node.GetDiagnostics();
Syntax\InternalSyntax\SyntaxList.WithLotsOfChildren.cs (1)
68return new WithLotsOfChildren(GetDiagnostics(), annotations, children, _childOffsets);
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (1)
112return new WithManyChildren(GetDiagnostics(), annotations, children);
Syntax\InternalSyntax\SyntaxList.WithThreeChildren.cs (1)
74return new WithThreeChildren(GetDiagnostics(), annotations, _child0, _child1, _child2);
Syntax\InternalSyntax\SyntaxList.WithTwoChildren.cs (1)
66return new WithTwoChildren(GetDiagnostics(), annotations, _child0, _child1);
Syntax\SyntaxToken.cs (1)
668var diagnostics = Node.GetDiagnostics();
Microsoft.CodeAnalysis.CSharp (39)
Parser\LanguageParser.cs (1)
14287foreach (var diagnostic in current.GetDiagnostics())
Parser\LanguageParser_InterpolatedString.cs (1)
471result = result.WithDiagnosticsGreen(MoveDiagnostics(token.GetDiagnostics(), -prefix.Length));
Parser\SyntaxParser.cs (7)
743DiagnosticInfo[] existingDiags = node.GetDiagnostics(); 963var tokenDiagnostics = tk.GetDiagnostics(); 976var existing = (SyntaxDiagnosticInfo)token.GetDiagnostics().FirstOrDefault(); 990var existing = (SyntaxDiagnosticInfo)node.GetDiagnostics().FirstOrDefault(); 1016var targetDiagnostics = target.GetDiagnostics(); 1103var d = token.GetDiagnostics(); 1121identifier = identifier.WithDiagnosticsGreen(token.GetDiagnostics());
Syntax\InternalSyntax\SyntaxFirstTokenReplacer.cs (1)
61DiagnosticInfo[] oldDiagnostics = node.GetDiagnostics();
Syntax\InternalSyntax\SyntaxToken.cs (3)
349return new SyntaxTokenWithTrivia(this.Kind, trivia, null, this.GetDiagnostics(), this.GetAnnotations()); 359return new SyntaxTokenWithTrivia(this.Kind, null, trivia, this.GetDiagnostics(), this.GetAnnotations()); 371return new SyntaxToken(this.Kind, this.FullWidth, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.MissingTokenWithTrivia.cs (3)
49return new MissingTokenWithTrivia(this.Kind, trivia, this.TrailingField, this.GetDiagnostics(), this.GetAnnotations()); 54return new MissingTokenWithTrivia(this.Kind, this.LeadingField, trivia, this.GetDiagnostics(), this.GetAnnotations()); 64return new MissingTokenWithTrivia(this.Kind, this.LeadingField, this.TrailingField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifier.cs (3)
46return new SyntaxIdentifierWithTrivia(this.Kind, this.TextField, this.TextField, trivia, null, this.GetDiagnostics(), this.GetAnnotations()); 51return new SyntaxIdentifierWithTrivia(this.Kind, this.TextField, this.TextField, null, trivia, this.GetDiagnostics(), this.GetAnnotations()); 61return new SyntaxIdentifier(this.Text, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifierExtended.cs (3)
49return new SyntaxIdentifierWithTrivia(this.contextualKind, this.TextField, this.valueText, trivia, null, this.GetDiagnostics(), this.GetAnnotations()); 54return new SyntaxIdentifierWithTrivia(this.contextualKind, this.TextField, this.valueText, null, trivia, this.GetDiagnostics(), this.GetAnnotations()); 64return new SyntaxIdentifierExtended(this.contextualKind, this.TextField, this.valueText, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifierWithTrailingTrivia.cs (3)
42return new SyntaxIdentifierWithTrivia(this.Kind, this.TextField, this.TextField, trivia, _trailing, this.GetDiagnostics(), this.GetAnnotations()); 47return new SyntaxIdentifierWithTrailingTrivia(this.TextField, trivia, this.GetDiagnostics(), this.GetAnnotations()); 57return new SyntaxIdentifierWithTrailingTrivia(this.TextField, _trailing, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifierWithTrivia.cs (3)
70return new SyntaxIdentifierWithTrivia(this.contextualKind, this.TextField, this.valueText, trivia, _trailing, this.GetDiagnostics(), this.GetAnnotations()); 75return new SyntaxIdentifierWithTrivia(this.contextualKind, this.TextField, this.valueText, _leading, trivia, this.GetDiagnostics(), this.GetAnnotations()); 85return new SyntaxIdentifierWithTrivia(this.contextualKind, this.TextField, this.valueText, _leading, _trailing, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteral.cs (3)
59return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, trivia, null, this.GetDiagnostics(), this.GetAnnotations()); 64return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, null, trivia, this.GetDiagnostics(), this.GetAnnotations()); 74return new SyntaxTokenWithValue<T>(this.Kind, this.TextField, this.ValueField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteralWithTrivia.cs (3)
65return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, trivia, _trailing, this.GetDiagnostics(), this.GetAnnotations()); 70return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, _leading, trivia, this.GetDiagnostics(), this.GetAnnotations()); 80return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, _leading, _trailing, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxTokenWithTrivia.cs (3)
58return new SyntaxTokenWithTrivia(this.Kind, trivia, this.TrailingField, this.GetDiagnostics(), this.GetAnnotations()); 63return new SyntaxTokenWithTrivia(this.Kind, this.LeadingField, trivia, this.GetDiagnostics(), this.GetAnnotations()); 73return new SyntaxTokenWithTrivia(this.Kind, this.LeadingField, this.TrailingField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
72return new SyntaxTrivia(this.Kind, this.Text, GetDiagnostics(), annotations);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
50var diags = node.GetDiagnostics();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\GreenNodeTests.cs (1)
18var diags = nodeWithDiags.GetDiagnostics();