Evaluate the program. Non-recoverable errors (i.e. outside of CEL's notion of an error) are returned as a non-ok absl::Status. These are propagated immediately and do not participate in CEL's notion of error handling. CEL errors are represented as result with an Ok status and a held cel::ErrorValue result. Activation manages instances of variables available in the cel expression's environment.
| 82 | // For consistency, users should use the same arena to create values |
| 83 | // in the activation and for Program evaluation. |
| 84 | absl::StatusOr<Value> Evaluate( |
| 85 | google::protobuf::Arena* absl_nonnull arena ABSL_ATTRIBUTE_LIFETIME_BOUND, |
| 86 | const ActivationInterface& activation, |
| 87 | const EvaluateOptions& options = {}) const ABSL_ATTRIBUTE_LIFETIME_BOUND { |
| 88 | return EvaluateImpl(activation, arena, options); |
| 89 | } |
| 90 | |
| 91 | ABSL_DEPRECATED("Use the EvaluateOptions overload instead.") |
| 92 | absl::StatusOr<Value> Evaluate( |