Set the expr to be analyzed and computes isConstant_.
()
| 1234 | * Set the expr to be analyzed and computes isConstant_. |
| 1235 | */ |
| 1236 | protected void analysisDone() { |
| 1237 | Preconditions.checkState(!isAnalyzed_); |
| 1238 | // We need to compute the const-ness as the last step, since analysis may change |
| 1239 | // the result, e.g. by resolving function. |
| 1240 | isConstant_ = isConstantImpl(); |
| 1241 | isAnalyzed_ = true; |
| 1242 | } |
| 1243 | |
| 1244 | /** |
| 1245 | * Resets the internal state of this expr produced by analyze(). |
no test coverage detected