SyntaxExtensions.IsLast(SyntaxList<StatementSyntax>, StatementSyntax, Boolean) Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Returns true if the specified statement is a last statement in the list.
public static bool IsLast(this Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, bool ignoreLocalFunctions)
Parameters
statements SyntaxList<StatementSyntax>
statement StatementSyntax
ignoreLocalFunctions Boolean
Ignore local function statements at the end of the list.