| 132 | } |
| 133 | |
| 134 | absl::Status CreateStructStepForStruct::Evaluate(ExecutionFrame* frame) const { |
| 135 | if (frame->value_stack().size() < entries_.size()) { |
| 136 | return absl::InternalError("CreateStructStepForStruct: stack underflow"); |
| 137 | } |
| 138 | CEL_ASSIGN_OR_RETURN(Value result, DoEvaluate(frame)); |
| 139 | frame->value_stack().PopAndPush(entries_.size(), std::move(result)); |
| 140 | |
| 141 | return absl::OkStatus(); |
| 142 | } |
| 143 | |
| 144 | class DirectCreateStructStep : public DirectExpressionStep { |
| 145 | public: |
nothing calls this directly
no test coverage detected