Skip to main content

SyntaxExtensions.NextStatement(StatementSyntax) Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Gets the next statement of the specified statement. If the specified statement is not contained in the list, or if there is no next statement, then this method returns null.

public static Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax? NextStatement(this Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement)

Parameters

statement StatementSyntax

Returns

StatementSyntax