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)
1433var d2 = d1.GetNextDirective(); 1436var d3 = d2.GetNextDirective(); 1439var d4 = d3.GetNextDirective(); 1442var d5 = d4.GetNextDirective(); 1494Assert.Same(secondDirective, firstDirective.GetNextDirective()); 1495Assert.Null(secondDirective.GetNextDirective()); 1520d = d.GetNextDirective(); 1551d = d.GetNextDirective(); 1621d = d.GetNextDirective(); 1655d = 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));