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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.