8 references to GetNextStatement
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (2)
42if (shouldRemoveNextStatement && node.GetNextStatement() is StatementSyntax nextStatement) 188return AnalyzeNextStatement(switchStatement.GetNextStatement());
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
298var nextStatement = localStatement.GetNextStatement();
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
789var currentStatement = localDeclarationStatement.GetNextStatement(); 832currentStatement = currentStatement.GetNextStatement();
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
293if (LocalFlowsIn(firstStatement: statement.GetNextStatement(),
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (2)
86var firstAssignmentStatement = localDeclarationStatement.GetNextStatement(); 91var secondAssignmentStatement = firstAssignmentStatement.GetNextStatement();