20 references to GetNextDirective
Microsoft.CodeAnalysis.CSharp (1)
Syntax\DirectiveTriviaSyntax.cs (1)
227d = d.GetNextDirective();
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
55for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective())
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
114for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective()) 197for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective())
SuppressFormattingRule.cs (1)
329var endDirective = pragmaWarningDirectiveTrivia.GetNextDirective(trivia => IsFormatDirective(trivia, SyntaxKind.RestoreKeyword));
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
121for (var directive = firstDirective; directive is not null; directive = directive.GetNextDirective(s_isNullableDirectiveTriviaPredicate))
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
55for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective())
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
114for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective()) 197for (var directive = root.GetFirstDirective(); directive is not null; directive = directive.GetNextDirective())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Syntax\SyntaxNodeTests.cs (10)
1408var d2 = d1.GetNextDirective(); 1411var d3 = d2.GetNextDirective(); 1414var d4 = d3.GetNextDirective(); 1417var d5 = d4.GetNextDirective(); 1469Assert.Same(secondDirective, firstDirective.GetNextDirective()); 1470Assert.Null(secondDirective.GetNextDirective()); 1495d = d.GetNextDirective(); 1526d = d.GetNextDirective(); 1596d = d.GetNextDirective(); 1630d = d.GetNextDirective();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
SuppressFormattingRule.cs (1)
329var endDirective = pragmaWarningDirectiveTrivia.GetNextDirective(trivia => IsFormatDirective(trivia, SyntaxKind.RestoreKeyword));