Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
71
func
(f *NodeFactory) DeepCloneNode(node *Node) *Node {
72
return
getDeepCloneVisitor(f, true /*syntheticLocation*/).VisitNode(node)
73
}
74
75
func
(f *NodeFactory) DeepCloneReparse(node *Node) *Node {
76
if
node != nil {
Callers
15
TestDeepCloneNodeSanityCheck
Function · 0.95
createBody
Method · 0.80
createPropertyName
Function · 0.80
addInlineAssertion
Method · 0.80
extractAsVariable
Method · 0.80
transformExportAssignment
Method · 0.80
transformExtendsClauseWithExpression
Method · 0.80
transformDestructuringPatterns
Method · 0.80
createTypeOfFromEntityNameExpression
Method · 0.80
makeSpreadVariable
Method · 0.80
getExistingNodeTreeVisitor
Function · 0.80
symbolToTypeNode
Method · 0.80
Calls
2
getDeepCloneVisitor
Function · 0.85
VisitNode
Method · 0.80
Tested by
1
TestDeepCloneNodeSanityCheck
Function · 0.76