| 120 | } |
| 121 | |
| 122 | absl::Status CreateStructStepForMap::Evaluate(ExecutionFrame* frame) const { |
| 123 | if (frame->value_stack().size() < 2 * entry_count_) { |
| 124 | return absl::InternalError("CreateStructStepForMap: stack underflow"); |
| 125 | } |
| 126 | |
| 127 | CEL_ASSIGN_OR_RETURN(auto result, DoEvaluate(frame)); |
| 128 | |
| 129 | frame->value_stack().PopAndPush(2 * entry_count_, std::move(result)); |
| 130 | |
| 131 | return absl::OkStatus(); |
| 132 | } |
| 133 | |
| 134 | class DirectCreateMapStep : public DirectExpressionStep { |
| 135 | public: |
nothing calls this directly
no test coverage detected