Share via


SyntaxFactory.SeparatedList Method

Definition

Overloads

SeparatedList<TNode>()

Creates an empty separated list.

SeparatedList<TNode>(SyntaxNodeOrTokenList)

Creates a separated list from a SyntaxNodeOrTokenList. The SyntaxNodeOrTokenList must start with a node and alternate between nodes and separator tokens.

SeparatedList<TNode>(IEnumerable<SyntaxNodeOrToken>)

Creates a separated list from a sequence of nodes or tokens. The sequence must start with a node and alternate between nodes and separator tokens.

SeparatedList<TNode>(IEnumerable<TNode>)

Creates a separated list of nodes from a sequence of nodes, synthesizing comma separators in between.

SeparatedList<TNode>(IEnumerable<TNode>, IEnumerable<SyntaxToken>)

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

SeparatedList<TNode>()

Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb

Creates an empty separated list.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> SeparatedList();
public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> SeparatedList<TNode> () where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member SeparatedList : unit -> Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function SeparatedList(Of TNode As SyntaxNode) () As SeparatedSyntaxList(Of TNode)

Type Parameters

TNode

The specific type of the element nodes.

Returns

Applies to

SeparatedList<TNode>(SyntaxNodeOrTokenList)

Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb

Creates a separated list from a SyntaxNodeOrTokenList. The SyntaxNodeOrTokenList must start with a node and alternate between nodes and separator tokens.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> SeparatedList(Microsoft::CodeAnalysis::SyntaxNodeOrTokenList nodesAndTokens);
public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> SeparatedList<TNode> (Microsoft.CodeAnalysis.SyntaxNodeOrTokenList nodesAndTokens) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member SeparatedList : Microsoft.CodeAnalysis.SyntaxNodeOrTokenList -> Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function SeparatedList(Of TNode As SyntaxNode) (nodesAndTokens As SyntaxNodeOrTokenList) As SeparatedSyntaxList(Of TNode)

Type Parameters

TNode

The specific type of the element nodes.

Parameters

nodesAndTokens
SyntaxNodeOrTokenList

An alternating list of nodes and tokens.

Returns

Applies to

SeparatedList<TNode>(IEnumerable<SyntaxNodeOrToken>)

Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb

Creates a separated list from a sequence of nodes or tokens. The sequence must start with a node and alternate between nodes and separator tokens.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> SeparatedList(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNodeOrToken> ^ nodesAndTokens);
public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> SeparatedList<TNode> (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> nodesAndTokens) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member SeparatedList : seq<Microsoft.CodeAnalysis.SyntaxNodeOrToken> -> Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function SeparatedList(Of TNode As SyntaxNode) (nodesAndTokens As IEnumerable(Of SyntaxNodeOrToken)) As SeparatedSyntaxList(Of TNode)

Type Parameters

TNode

The specific type of the element nodes.

Parameters

nodesAndTokens
IEnumerable<SyntaxNodeOrToken>

A alternating sequence of nodes and tokens.

Returns

Applies to

SeparatedList<TNode>(IEnumerable<TNode>)

Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb

Creates a separated list of nodes from a sequence of nodes, synthesizing comma separators in between.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> SeparatedList(System::Collections::Generic::IEnumerable<TNode> ^ nodes);
public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> SeparatedList<TNode> (System.Collections.Generic.IEnumerable<TNode> nodes) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member SeparatedList : seq<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> -> Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function SeparatedList(Of TNode As SyntaxNode) (nodes As IEnumerable(Of TNode)) As SeparatedSyntaxList(Of TNode)

Type Parameters

TNode

The specific type of the element nodes.

Parameters

nodes
IEnumerable<TNode>

A sequence of syntax nodes.

Returns

Applies to

SeparatedList<TNode>(IEnumerable<TNode>, IEnumerable<SyntaxToken>)

Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb
Source:
SyntaxNodeFactories.vb

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

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> SeparatedList(System::Collections::Generic::IEnumerable<TNode> ^ nodes, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxToken> ^ separators);
public static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> SeparatedList<TNode> (System.Collections.Generic.IEnumerable<TNode> nodes, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxToken> separators) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member SeparatedList : seq<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * seq<Microsoft.CodeAnalysis.SyntaxToken> -> Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function SeparatedList(Of TNode As SyntaxNode) (nodes As IEnumerable(Of TNode), separators As IEnumerable(Of SyntaxToken)) As SeparatedSyntaxList(Of TNode)

Type Parameters

TNode

The specific type of the element nodes.

Parameters

nodes
IEnumerable<TNode>

A sequence of syntax nodes.

separators
IEnumerable<SyntaxToken>

A sequence of token to be interleaved between the nodes. The number of tokens must be one less than the number of nodes.

Returns

Applies to