Skip to main content

SyntaxExtensions.ToSeparatedSyntaxList Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
ToSeparatedSyntaxList<TNode>(IEnumerable<SyntaxNodeOrToken>)Creates a separated list of syntax nodes from a sequence of nodes and tokens.
ToSeparatedSyntaxList<TNode>(IEnumerable<TNode>)Creates a separated list of syntax nodes from a sequence of nodes.

ToSeparatedSyntaxList<TNode>(IEnumerable<SyntaxNodeOrToken>)

Creates a separated list of syntax nodes from a sequence of nodes and tokens.

public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> ToSeparatedSyntaxList<TNode>(this System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> nodesAndTokens) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

nodesAndTokens IEnumerable<SyntaxNodeOrToken>

Returns

SeparatedSyntaxList<TNode>

ToSeparatedSyntaxList<TNode>(IEnumerable<TNode>)

Creates a separated list of syntax nodes from a sequence of nodes.

public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> ToSeparatedSyntaxList<TNode>(this System.Collections.Generic.IEnumerable<TNode> nodes) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

nodes IEnumerable<TNode>

Returns

SeparatedSyntaxList<TNode>