WalkFunc traverses an expression hierarchy in depth-first order.
(e Expr, fn func(Expr))
| 567 | |
| 568 | // WalkFunc traverses an expression hierarchy in depth-first order. |
| 569 | func WalkFunc(e Expr, fn func(Expr)) { |
| 570 | Walk(walkFuncVisitor(fn), e) |
| 571 | } |
| 572 | |
| 573 | type walkFuncVisitor func(Expr) |
| 574 |
nothing calls this directly
no test coverage detected