Delen via


SyntaxTokenList.ReplaceRange Method

Definition

Creates a new SyntaxTokenList with the specified token replaced with new tokens.

public:
 Microsoft::CodeAnalysis::SyntaxTokenList ReplaceRange(Microsoft::CodeAnalysis::SyntaxToken tokenInList, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxToken> ^ newTokens);
public Microsoft.CodeAnalysis.SyntaxTokenList ReplaceRange (Microsoft.CodeAnalysis.SyntaxToken tokenInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxToken> newTokens);
member this.ReplaceRange : Microsoft.CodeAnalysis.SyntaxToken * seq<Microsoft.CodeAnalysis.SyntaxToken> -> Microsoft.CodeAnalysis.SyntaxTokenList
Public Function ReplaceRange (tokenInList As SyntaxToken, newTokens As IEnumerable(Of SyntaxToken)) As SyntaxTokenList

Parameters

tokenInList
SyntaxToken

The token to replace.

newTokens
IEnumerable<SyntaxToken>

The new tokens.

Returns

Applies to