MCPcopy
hub / github.com/expr-lang/expr / invalidateTrees

Function invalidateTrees

checker/checker_bench_test.go:104–110  ·  view source on GitHub ↗
(trees ...*parser.Tree)

Source from the content-addressed store, hash-verified

102func (f visitorFunc) Visit(node *ast.Node) { f(node) }
103
104func invalidateTrees(trees ...*parser.Tree) {
105 for _, tree := range trees {
106 ast.Walk(&tree.Node, visitorFunc(func(node *ast.Node) {
107 (*node).SetNature(nature.Nature{})
108 }))
109 }
110}
111
112type recursive struct {
113 Inner *recursive `expr:"a"`

Callers 1

BenchmarkCheckerFunction · 0.85

Calls 3

WalkFunction · 0.92
visitorFuncFuncType · 0.85
SetNatureMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…