WalkExprConst is a variant of WalkExpr for visitors that do not modify the expression.
(v Visitor, expr Expr)
| 690 | |
| 691 | // WalkExprConst is a variant of WalkExpr for visitors that do not modify the expression. |
| 692 | func WalkExprConst(v Visitor, expr Expr) { |
| 693 | WalkExpr(v, expr) |
| 694 | // TODO(radu): we should verify that WalkExpr returns changed == false. Unfortunately that |
| 695 | // is not the case today because walking through non-pointer implementations of Expr (like |
| 696 | // DBool, DTuple) causes new nodes to be created. We should make all Expr implementations be |
| 697 | // pointers (which will also remove the need for using reflect.ValueOf above). |
| 698 | } |
| 699 | |
| 700 | // walkableStmt is implemented by statements that can appear inside an expression (selects) or |
| 701 | // we want to start a walk from (using walkStmt). |
no test coverage detected
searching dependent graphs…