13 references to ContainsDirective
Microsoft.CodeAnalysis.CSharp (2)
CSharpExtensions.cs (2)
63/// <inheritdoc cref="SyntaxNode.ContainsDirective"/> 65=> node.ContainsDirective((int)kind);
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicExtensions.vb (1)
66''' <inheritdoc cref="SyntaxNode.ContainsDirective"/>
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessarySuppressions\VisualBasicRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.vb (2)
34Return root.ContainsDirective(SyntaxKind.DisableWarningDirectiveTrivia) Or 35root.ContainsDirective(SyntaxKind.EnableWarningDirectiveTrivia)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessarySuppressions\VisualBasicRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.vb (2)
34Return root.ContainsDirective(SyntaxKind.DisableWarningDirectiveTrivia) Or 35root.ContainsDirective(SyntaxKind.EnableWarningDirectiveTrivia)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
TestSyntaxNodes.vb (5)
2102Assert.False(SyntaxFactory.ParseCompilationUnit("").ContainsDirective(currentKind)) 2107Assert.False(SyntaxFactory.ParseCompilationUnit("namespace N" & vbCrLf & "end namespace").ContainsDirective(currentKind)) 2115Assert.False(compilationUnit.ContainsDirective(currentKind)) 2121Assert.True(compilationUnit.ContainsDirective(currentKind)) 2126Assert.False(compilationUnit.ContainsDirective(currentKind))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
216if (!siblingRoot.ContainsDirective(syntaxKinds.IfDirectiveTrivia))