Skip to main content

SyntaxExtensions.PreviousStatement(StatementSyntax) Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

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

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

Parameters

statement StatementSyntax

Returns

StatementSyntax