PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up).
(expr Expr, visitor Visitor)
| 173 | |
| 174 | // PostOrderVisit walks the expression graph and calls the visitor in post-order (bottom-up). |
| 175 | func 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). |
| 180 | func PreOrderVisit(expr Expr, visitor Visitor) { |