2 references to GetFirstDirective
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
120
var firstDirective = root.
GetFirstDirective
(s_isNullableDirectiveTriviaPredicate);
243
var firstRelevantDirective = root.
GetFirstDirective
(static directive => directive.Kind() is SyntaxKind.NullableDirectiveTrivia or SyntaxKind.IfDirectiveTrivia);