SyntaxNodeExtensions.InsertNodesBefore<TRoot> メソッド

定義

指定したノードの前に新しいノードが挿入されたノードの新しいツリーを作成します。

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

型パラメーター

TRoot

ルート ノードの種類。

パラメーター

root
TRoot

ノードのツリーのルート。

nodeInList
SyntaxNode

前に挿入するノード。リスト メンバーの要素であるルート ノードの子孫。

newNodes
IEnumerable<SyntaxNode>

指定したノードの直前のツリーに挿入する一連のノード。

戻り値

TRoot

適用対象