SyntaxExtensions.IsFirst Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.Core.dll
Overloads
Method | Summary |
---|---|
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
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