다음을 통해 공유


SyntaxGenerator.ReplaceNode(SyntaxNode, SyntaxNode, SyntaxNode) 메서드

정의

루트 트리의 노드를 새 노드로 바꿉니다.

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

매개 변수

root
SyntaxNode
node
SyntaxNode
newDeclaration
SyntaxNode

반환

적용 대상