RewriteFunc rewrites an expression hierarchy.
(e Expr, fn func(Expr) Expr)
| 615 | |
| 616 | // RewriteFunc rewrites an expression hierarchy. |
| 617 | func RewriteFunc(e Expr, fn func(Expr) Expr) Expr { |
| 618 | return Rewrite(rewriterFunc(fn), e) |
| 619 | } |
| 620 | |
| 621 | type rewriterFunc func(Expr) Expr |
| 622 |