| 38 | : DirectExpressionStep(-1), expression_(std::move(expression)) {} |
| 39 | |
| 40 | absl::Status Evaluate(ExecutionFrameBase& frame, cel::Value& result, |
| 41 | AttributeTrail& trail) const override { |
| 42 | CEL_RETURN_IF_ERROR(expression_->Evaluate(frame, result, trail)); |
| 43 | if (!frame.callback()) { |
| 44 | return absl::OkStatus(); |
| 45 | } |
| 46 | return frame.callback()(expression_->expr_id(), result, |
| 47 | frame.descriptor_pool(), frame.message_factory(), |
| 48 | frame.arena()); |
| 49 | } |
| 50 | |
| 51 | cel::NativeTypeId GetNativeTypeId() const override { |
| 52 | return cel::NativeTypeId::For<TraceStep>(); |
nothing calls this directly
no test coverage detected