(expr Expr)
| 836 | func (*isConstVisitor) VisitPost(expr Expr) Expr { return expr } |
| 837 | |
| 838 | func (v *isConstVisitor) run(expr Expr) bool { |
| 839 | v.isConst = true |
| 840 | WalkExprConst(v, expr) |
| 841 | return v.isConst |
| 842 | } |
| 843 | |
| 844 | // IsConst returns whether the expression is constant. A constant expression |
| 845 | // does not contain variables, as defined by ContainsVars, nor impure functions. |
no test coverage detected