MCPcopy Index your code
hub / github.com/expr-lang/expr / patchCopyType

Function patchCopyType

optimizer/optimizer.go:78–82  ·  view source on GitHub ↗
(node *Node, newNode Node)

Source from the content-addressed store, hash-verified

76}
77
78func patchCopyType(node *Node, newNode Node) {
79 t := (*node).Type()
80 newNode.SetType(t)
81 Patch(node, newNode)
82}

Callers 11

VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85
VisitMethod · 0.85

Calls 3

TypeMethod · 0.65
SetTypeMethod · 0.65
PatchFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…