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