12 references to GetDiagnostics
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeOrToken.cs (1)
469return this.AsToken().GetDiagnostics();
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
2393foreach (var error in token.GetDiagnostics())
Microsoft.CodeAnalysis.CSharp.Features (1)
StringIndentation\CSharpStringIndentationService.cs (1)
82if (token.ContainsDiagnostics && token.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
LexicalAndXml\RawStringLiteralLexingTests.cs (2)
201Assert.Empty(token.GetDiagnostics()); 219var diagnostics = token.GetDiagnostics();
Syntax\SyntaxFactoryTests.cs (5)
427literal.GetDiagnostics().Verify(); 441literal.GetDiagnostics().Verify(); 455expression.Token.GetDiagnostics().Verify(); 469expression.Token.GetDiagnostics().Verify(); 478token.GetDiagnostics().Verify();
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\DeclarationTreeBuilder.vb (1)
852If Not modifier.GetDiagnostics().Any(Function(d) d.Severity = DiagnosticSeverity.Error) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeCleanup\Providers\ReduceTokensCodeCleanupProvider.vb (1)
93If value = 0 AndAlso HasOverflow(literal.GetDiagnostics()) Then