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

Method DeepCloneReparse

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

Source from the content-addressed store, hash-verified

73}
74
75func (f *NodeFactory) DeepCloneReparse(node *Node) *Node {
76 if node != nil {
77 node = getDeepCloneVisitor(f, false /*syntheticLocation*/).VisitNode(node)
78 SetParentInChildren(node)
79 node.Flags |= NodeFlagsReparsed
80 }
81 return node
82}
83
84func (f *NodeFactory) DeepCloneReparseModifiers(modifiers *ModifierList) *ModifierList {
85 return getDeepCloneVisitor(f, false /*syntheticLocation*/).VisitModifiers(modifiers)

Callers 2

addDeepCloneReparseMethod · 0.80
reparseJSDocSignatureMethod · 0.80

Calls 3

getDeepCloneVisitorFunction · 0.85
SetParentInChildrenFunction · 0.85
VisitNodeMethod · 0.80

Tested by

no test coverage detected