Compartir a través de


SyntaxNodeExtensions.InsertNodesAfter<TRoot> Método

Definición

Crea un nuevo árbol de nodos con nodos nuevos insertados después del nodo especificado.

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

Parámetros de tipo

TRoot

Tipo del nodo raíz.

Parámetros

root
TRoot

Raíz del árbol de nodos.

nodeInList
SyntaxNode

Nodo que se va a insertar después; descendiente del nodo raíz un elemento de un miembro de lista.

newNodes
IEnumerable<SyntaxNode>

Secuencia de nodos que se van a insertar en el árbol inmediatamente después del nodo especificado.

Devoluciones

TRoot

Se aplica a