SyntaxTokenList.ReplaceRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.