SyntaxFactory.SeparatedList Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SeparatedList<TNode>() |
Creates an empty separated list. |
SeparatedList<TNode>(SyntaxNodeOrTokenList) |
Creates a separated list from a SyntaxNodeOrTokenList, where the list elements start with a node and then alternate between additional nodes and separator tokens. |
SeparatedList<TNode>(IEnumerable<SyntaxNodeOrToken>) |
Creates a separated list from a sequence of nodes and tokens, starting with a node and alternating between additional 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:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
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:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Creates a separated list from a SyntaxNodeOrTokenList, where the list elements start with a node and then alternate between additional 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
The list of nodes and tokens.
Returns
Applies to
SeparatedList<TNode>(IEnumerable<SyntaxNodeOrToken>)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Creates a separated list from a sequence of nodes and tokens, starting with a node and alternating between additional 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 sequence of nodes or tokens, alternating between nodes and separator tokens.
Returns
Applies to
SeparatedList<TNode>(IEnumerable<TNode>)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
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;
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:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
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;
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
.NET