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