Share via


SyntaxNodeOrTokenList.ReplaceRange Method

Definition

Creates a new SyntaxNodeOrTokenList with the specified element replaced with a new nodes and tokens.

public:
 Microsoft::CodeAnalysis::SyntaxNodeOrTokenList ReplaceRange(Microsoft::CodeAnalysis::SyntaxNodeOrToken nodeOrTokenInList, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNodeOrToken> ^ newNodesAndTokens);
public Microsoft.CodeAnalysis.SyntaxNodeOrTokenList ReplaceRange (Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> newNodesAndTokens);
member this.ReplaceRange : Microsoft.CodeAnalysis.SyntaxNodeOrToken * seq<Microsoft.CodeAnalysis.SyntaxNodeOrToken> -> Microsoft.CodeAnalysis.SyntaxNodeOrTokenList
Public Function ReplaceRange (nodeOrTokenInList As SyntaxNodeOrToken, newNodesAndTokens As IEnumerable(Of SyntaxNodeOrToken)) As SyntaxNodeOrTokenList

Parameters

nodeOrTokenInList
SyntaxNodeOrToken

The element to replace.

newNodesAndTokens
IEnumerable<SyntaxNodeOrToken>

The new nodes and tokens.

Returns

Applies to