MCPcopy Create free account
hub / github.com/cel-expr/cel-go / PreOrderVisit

Function PreOrderVisit

common/ast/navigable.go:180–182  ·  view source on GitHub ↗

PreOrderVisit walks the expression graph and calls the visitor in pre-order (top-down).

(expr Expr, visitor Visitor)

Source from the content-addressed store, hash-verified

178
179// PreOrderVisit walks the expression graph and calls the visitor in pre-order (top-down).
180func PreOrderVisit(expr Expr, visitor Visitor) {
181 visit(expr, visitor, preOrder, 0, 0)
182}
183
184type visitOrder int
185

Callers 2

constantExprMatcherMethod · 0.92
TestExprVisitorFunction · 0.92

Calls 1

visitFunction · 0.70

Tested by 1

TestExprVisitorFunction · 0.74