Skip to main content

SyntaxExtensions.IsFirst Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
IsFirst<TNode>(SeparatedSyntaxList<TNode>, TNode)Returns true if the specified node is a first node in the list.
IsFirst<TNode>(SyntaxList<TNode>, TNode)Returns true if the specified node is a first node in the list.

IsFirst<TNode>(SeparatedSyntaxList<TNode>, TNode)

Returns true if the specified node is a first node in the list.

public static bool IsFirst<TNode>(this Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> list, TNode node) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

list SeparatedSyntaxList<TNode>

node TNode

Returns

Boolean

IsFirst<TNode>(SyntaxList<TNode>, TNode)

Returns true if the specified node is a first node in the list.

public static bool IsFirst<TNode>(this Microsoft.CodeAnalysis.SyntaxList<TNode> list, TNode node) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

list SyntaxList<TNode>

node TNode

Returns

Boolean