SyntaxNodeOrTokenList.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 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);
public Microsoft.CodeAnalysis.SyntaxNodeOrTokenList ReplaceRange (Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> newNodesAndTokens);
member this.ReplaceRange : Microsoft.CodeAnalysis.SyntaxNodeOrToken * seq<Microsoft.CodeAnalysis.SyntaxNodeOrToken> -> Microsoft.CodeAnalysis.SyntaxNodeOrTokenList
Public Function ReplaceRange (nodeOrTokenInList As SyntaxNodeOrToken, newNodesAndTokens As IEnumerable(Of SyntaxNodeOrToken)) As SyntaxNodeOrTokenList
Parameters
- nodeOrTokenInList
- SyntaxNodeOrToken
The element to replace.
- newNodesAndTokens
- IEnumerable<SyntaxNodeOrToken>
The new nodes and 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.