SyntaxTokenList.ReplaceRange Metodo

Definizione

Crea un nuovo SyntaxTokenList con il token specificato sostituito con nuovi token.

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

Parametri

tokenInList
SyntaxToken

Token da sostituire.

newTokens
IEnumerable<SyntaxToken>

Nuovi token.

Restituisce

Si applica a