共用方式為


SyntaxNodeExtensions.InsertNodesAfter<TRoot> Method

Definition

Creates a new tree of nodes with new nodes inserted after the specified node.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot InsertNodesAfter(TRoot root, Microsoft::CodeAnalysis::SyntaxNode ^ nodeInList, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNode ^> ^ newNodes);
public static TRoot InsertNodesAfter<TRoot> (this TRoot root, Microsoft.CodeAnalysis.SyntaxNode nodeInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> newNodes) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member InsertNodesAfter : 'Root * Microsoft.CodeAnalysis.SyntaxNode * seq<Microsoft.CodeAnalysis.SyntaxNode> -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function InsertNodesAfter(Of TRoot As SyntaxNode) (root As TRoot, nodeInList As SyntaxNode, newNodes As IEnumerable(Of SyntaxNode)) As TRoot

Type Parameters

TRoot

The type of the root node.

Parameters

root
TRoot

The root of the tree of nodes.

nodeInList
SyntaxNode

The node to insert after; a descendant of the root node an element of a list member.

newNodes
IEnumerable<SyntaxNode>

A sequence of nodes to insert into the tree immediately after the specified node.

Returns

TRoot

Applies to