MCPcopy Create free account
hub / github.com/microsoft/typescript-go / DeepCloneNode

Method DeepCloneNode

internal/ast/deepclone.go:71–73  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

69}
70
71func (f *NodeFactory) DeepCloneNode(node *Node) *Node {
72 return getDeepCloneVisitor(f, true /*syntheticLocation*/).VisitNode(node)
73}
74
75func (f *NodeFactory) DeepCloneReparse(node *Node) *Node {
76 if node != nil {

Calls 2

getDeepCloneVisitorFunction · 0.85
VisitNodeMethod · 0.80

Tested by 1