7 references to ContainsDirective
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
26
=> root.
ContainsDirective
(SyntaxKind.PragmaWarningDirectiveTrivia);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
26
=> root.
ContainsDirective
(SyntaxKind.PragmaWarningDirectiveTrivia);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxNodeTests.cs (5)
351
Assert.False(SyntaxFactory.ParseCompilationUnit("").
ContainsDirective
(kind));
355
Assert.False(SyntaxFactory.ParseCompilationUnit("namespace N { }").
ContainsDirective
(kind));
368
Assert.False(compilationUnit.
ContainsDirective
(kind));
476
Assert.True(compilationUnit.
ContainsDirective
(directiveKind));
481
Assert.False(compilationUnit.
ContainsDirective
(kind));