SyntaxList<TNode>.ReplaceRange(TNode, IEnumerable<TNode>) Method

Definition

Creates a new list with the specified element replaced with new nodes.

public:
 Microsoft::CodeAnalysis::SyntaxList<TNode> ReplaceRange(TNode nodeInList, System::Collections::Generic::IEnumerable<TNode> ^ newNodes);
public Microsoft.CodeAnalysis.SyntaxList<TNode> ReplaceRange (TNode nodeInList, System.Collections.Generic.IEnumerable<TNode> newNodes);
member this.ReplaceRange : 'Node * seq<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> -> Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)>
Public Function ReplaceRange (nodeInList As TNode, newNodes As IEnumerable(Of TNode)) As SyntaxList(Of TNode)

Parameters

nodeInList
TNode

The element to replace.

newNodes
IEnumerable<TNode>

The new nodes.

Returns

Applies to