Compartir a través de


SyntaxNodeExtensions.InsertNodesBefore<TRoot> Método

Definición

Crea un nuevo árbol de nodos con nuevos nodos insertados antes del nodo especificado.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot InsertNodesBefore(TRoot root, Microsoft::CodeAnalysis::SyntaxNode ^ nodeInList, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNode ^> ^ newNodes);
public static TRoot InsertNodesBefore<TRoot> (this TRoot root, Microsoft.CodeAnalysis.SyntaxNode nodeInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> newNodes) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member InsertNodesBefore : 'Root * Microsoft.CodeAnalysis.SyntaxNode * seq<Microsoft.CodeAnalysis.SyntaxNode> -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function InsertNodesBefore(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 antes; 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 antes del nodo especificado.

Devoluciones

TRoot

Se aplica a