Evaluate the Program plan with a Listener. The given callback will be invoked after evaluating any program step that corresponds to an AST node in the planned CEL expression. If the callback returns a non-ok status, evaluation stops and the Status is forwarded as the result of the EvaluateWithCallback call.
| 136 | // If the callback returns a non-ok status, evaluation stops and the Status |
| 137 | // is forwarded as the result of the EvaluateWithCallback call. |
| 138 | absl::StatusOr<Value> Trace( |
| 139 | google::protobuf::Arena* absl_nonnull arena ABSL_ATTRIBUTE_LIFETIME_BOUND, |
| 140 | const ActivationInterface& activation, |
| 141 | EvaluationListener evaluation_listener, |
| 142 | const EvaluateOptions& options = {}) const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
| 143 | return TraceImpl(activation, std::move(evaluation_listener), arena, |
| 144 | options); |
| 145 | } |
| 146 | |
| 147 | ABSL_DEPRECATED("Use the EvaluateOptions overload instead.") |
| 148 | absl::StatusOr<Value> Trace( |