SyntaxList Class
Builds SyntaxList<TNode> instances.
public static class SyntaxListMethods
| Name | Description |
|---|---|
| Create<TNode>(ReadOnlySpan<TNode>) | Creates a detached list holding nodes. |
Create<TNode>(ReadOnlySpan<TNode>)
SyntaxList.csCreates a detached list holding nodes.
public static SyntaxList<TNode> Create<TNode>(ReadOnlySpan<TNode> nodes) where TNode : SyntaxNodeType parameters
TNode
Parameters
nodesReadOnlySpan<TNode>
Returns
Remarks
This is what a collection expression targeting SyntaxList<TNode> builds its list with.