39 references to ContainsDiagnostics
Microsoft.AspNetCore.App.Analyzers (3)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (2)
50if (token.ContainsDiagnostics) 132Debug.Assert(!token.ContainsDiagnostics);
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
58Debug.Assert(!token.ContainsDiagnostics);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
71if (token.ContainsDiagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (2)
53if (token.ContainsDiagnostics) 136Debug.Assert(!token.ContainsDiagnostics);
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpLineDirectiveMap.cs (1)
68if (!lineToken.ContainsDiagnostics)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
60Debug.Assert(!token.ContainsDiagnostics);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
468return this.IsIdentifier(token) && !token.ContainsDiagnostics && token.ToString().Length == identifier.Length; 474return this.IsIdentifier(token) && !token.ContainsDiagnostics && token.ToString().Length == identifier.Length && token.IsVerbatimIdentifier();
Microsoft.CodeAnalysis.CSharp.Features (3)
BraceCompletion\StringLiteralBraceCompletionService.cs (2)
97if (token.ContainsDiagnostics) 103if (token.ContainsDiagnostics)
StringIndentation\CSharpStringIndentationService.cs (1)
82if (token.ContainsDiagnostics && token.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
LexicalAndXml\LexicalTests.cs (3)
167Assert.False(token.ContainsDiagnostics); 3907Assert.False(token.ContainsDiagnostics); 3930Assert.False(token.ContainsDiagnostics);
Syntax\SyntaxRewriterTests.cs (4)
565Assert.False(token1.ContainsDiagnostics); 584Assert.False(token2.ContainsDiagnostics); 611Assert.False(token1.ContainsDiagnostics); 630Assert.False(token2.ContainsDiagnostics);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
60Debug.Assert(!token.ContainsDiagnostics);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
468return this.IsIdentifier(token) && !token.ContainsDiagnostics && token.ToString().Length == identifier.Length; 474return this.IsIdentifier(token) && !token.ContainsDiagnostics && token.ToString().Length == identifier.Length && token.IsVerbatimIdentifier();
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (1)
52Assert.False(token.ContainsDiagnostics);
Microsoft.CodeAnalysis.Features (2)
SpellCheck\AbstractSpellCheckSpanService.cs (1)
119if (token.ContainsDiagnostics)
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
71if (token.ContainsDiagnostics)
Microsoft.CodeAnalysis.VisualBasic (5)
Binding\Binder_Utils.vb (1)
118Debug.Assert(syntax.ContainsDiagnostics)
Syntax\VisualBasicWarningStateMap.vb (4)
31If (Not w.EnableKeyword.IsMissing) AndAlso (Not w.EnableKeyword.ContainsDiagnostics) AndAlso 32(Not w.WarningKeyword.IsMissing) AndAlso (Not w.WarningKeyword.ContainsDiagnostics) Then 37If (Not w.DisableKeyword.IsMissing) AndAlso (Not w.DisableKeyword.ContainsDiagnostics) AndAlso 38(Not w.WarningKeyword.IsMissing) AndAlso (Not w.WarningKeyword.ContainsDiagnostics) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\EmbeddedLanguages\VirtualChars\VisualBasicVirtualCharService.vb (1)
35Debug.Assert(Not token.ContainsDiagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
464Return IsIdentifier(token) AndAlso Not token.ContainsDiagnostics AndAlso token.ToString().Length = identifier.Length
Microsoft.CodeAnalysis.VisualBasic.Features (1)
BraceMatching\StringLiteralBraceMatcher.vb (1)
29If token.Kind = SyntaxKind.StringLiteralToken AndAlso Not token.ContainsDiagnostics Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\ParseExpression.vb (1)
238Assert.True(exp.CommaToken.ContainsDiagnostics, "ContainsDiagnostics Not True")
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\EmbeddedLanguages\VirtualChars\VisualBasicVirtualCharService.vb (1)
35Debug.Assert(Not token.ContainsDiagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
464Return IsIdentifier(token) AndAlso Not token.ContainsDiagnostics AndAlso token.ToString().Length = identifier.Length
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (2)
53if (token.ContainsDiagnostics) 136Debug.Assert(!token.ContainsDiagnostics);