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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.