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);

Parameters

nodeOrTokenInList
SyntaxNodeOrToken

The element to replace.

newNodesAndTokens
IEnumerable<SyntaxNodeOrToken>

The new nodes and tokens.

Returns

Applies to