SyntaxGenerator.ReplaceNode(SyntaxNode, SyntaxNode, SyntaxNode) 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.
Replaces the node in the root's tree with the new node.
public:
virtual Microsoft::CodeAnalysis::SyntaxNode ^ ReplaceNode(Microsoft::CodeAnalysis::SyntaxNode ^ root, Microsoft::CodeAnalysis::SyntaxNode ^ node, Microsoft::CodeAnalysis::SyntaxNode ^ newDeclaration);
public virtual Microsoft.CodeAnalysis.SyntaxNode ReplaceNode (Microsoft.CodeAnalysis.SyntaxNode root, Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SyntaxNode newDeclaration);
public virtual Microsoft.CodeAnalysis.SyntaxNode ReplaceNode (Microsoft.CodeAnalysis.SyntaxNode root, Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SyntaxNode? newDeclaration);
abstract member ReplaceNode : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
override this.ReplaceNode : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public Overridable Function ReplaceNode (root As SyntaxNode, node As SyntaxNode, newDeclaration As SyntaxNode) As SyntaxNode
Parameters
- root
- SyntaxNode
- node
- SyntaxNode
- newDeclaration
- SyntaxNode
Returns
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.