SyntaxNodeOrTokenList.Replace(SyntaxNodeOrToken, SyntaxNodeOrToken) 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 node or token.
public:
Microsoft::CodeAnalysis::SyntaxNodeOrTokenList Replace(Microsoft::CodeAnalysis::SyntaxNodeOrToken nodeOrTokenInList, Microsoft::CodeAnalysis::SyntaxNodeOrToken newNodeOrToken);
public Microsoft.CodeAnalysis.SyntaxNodeOrTokenList Replace (Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrTokenInList, Microsoft.CodeAnalysis.SyntaxNodeOrToken newNodeOrToken);
member this.Replace : Microsoft.CodeAnalysis.SyntaxNodeOrToken * Microsoft.CodeAnalysis.SyntaxNodeOrToken -> Microsoft.CodeAnalysis.SyntaxNodeOrTokenList
Public Function Replace (nodeOrTokenInList As SyntaxNodeOrToken, newNodeOrToken As SyntaxNodeOrToken) As SyntaxNodeOrTokenList
Parameters
- nodeOrTokenInList
- SyntaxNodeOrToken
The element to replace.
- newNodeOrToken
- SyntaxNodeOrToken
The new node or token.
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.