22 references to GetFirstDirective
Microsoft.CodeAnalysis.CSharp (1)
CSharpExtensions.cs (1)
382
return ((CSharpSyntaxNode)node).
GetFirstDirective
(predicate);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
113
for (var directive = root.
GetFirstDirective
(); directive is not null; directive = directive.GetNextDirective())
196
for (var directive = root.
GetFirstDirective
(); directive is not null; directive = directive.GetNextDirective())
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
113
for (var directive = root.
GetFirstDirective
(); directive is not null; directive = directive.GetNextDirective())
196
for (var directive = root.
GetFirstDirective
(); directive is not null; directive = directive.GetNextDirective())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
LexicalAndXml\PreprocessorTests.cs (10)
2103
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2125
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2213
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2234
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2255
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2276
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2297
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2318
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2339
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
2360
var regionDirective = (RegionDirectiveTriviaSyntax)node.
GetFirstDirective
();
Syntax\SyntaxNodeTests.cs (7)
1401
var d = tree.GetCompilationUnitRoot().
GetFirstDirective
();
1430
var d1 = tree.GetCompilationUnitRoot().
GetFirstDirective
();
1517
var d = tree.GetCompilationUnitRoot().
GetFirstDirective
();
1548
var d = tree.GetCompilationUnitRoot().
GetFirstDirective
();
1618
var d = tree.GetCompilationUnitRoot().
GetFirstDirective
();
1652
var d = tree.GetCompilationUnitRoot().
GetFirstDirective
();
1739
var d = tree.GetCompilationUnitRoot().
GetFirstDirective
();