18 references to GetNextDirective
Microsoft.CodeAnalysis.CSharp (1)
Syntax\DirectiveTriviaSyntax.cs (1)
227d = d.GetNextDirective();
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
113for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective()) 196for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
329var endDirective = pragmaWarningDirectiveTrivia.GetNextDirective(trivia => IsFormatDirective(trivia, SyntaxKind.RestoreKeyword));
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
129for (var directive = firstDirective; directive is not null; directive = directive.GetNextDirective(s_isNullableDirectiveTriviaPredicate))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
113for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective()) 196for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Syntax\SyntaxNodeTests.cs (10)
1410var d2 = d1.GetNextDirective(); 1413var d3 = d2.GetNextDirective(); 1416var d4 = d3.GetNextDirective(); 1419var d5 = d4.GetNextDirective(); 1471Assert.Same(secondDirective, firstDirective.GetNextDirective()); 1472Assert.Null(secondDirective.GetNextDirective()); 1497d = d.GetNextDirective(); 1528d = d.GetNextDirective(); 1598d = d.GetNextDirective(); 1632d = d.GetNextDirective();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
329var endDirective = pragmaWarningDirectiveTrivia.GetNextDirective(trivia => IsFormatDirective(trivia, SyntaxKind.RestoreKeyword));