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

Function PostOrderVisit

common/ast/navigable.go:175–177  ·  view source on GitHub ↗

PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up).

(expr Expr, visitor Visitor)

Source from the content-addressed store, hash-verified

173
174// PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up).
175func PostOrderVisit(expr Expr, visitor Visitor) {
176 visit(expr, visitor, postOrder, 0, 0)
177}
178
179// PreOrderVisit walks the expression graph and calls the visitor in pre-order (top-down).
180func PreOrderVisit(expr Expr, visitor Visitor) {

Callers 15

propagateVisitednessFunction · 0.92
verifySourceInfoTransferFunction · 0.92
optimizeRuleMethod · 0.92
registerVariableMethod · 0.92
hideTestVarsFunction · 0.92
scanOptTargetsFunction · 0.92
OptimizeMethod · 0.92
cleanupMacroRefsFunction · 0.92
UpdateExprMethod · 0.92
sanitizeMacroMethod · 0.92
TestExprVisitorFunction · 0.92

Calls 1

visitFunction · 0.70

Tested by 4

verifySourceInfoTransferFunction · 0.74
hideTestVarsFunction · 0.74
TestExprVisitorFunction · 0.74