| 52 | : environment_(environment), impl_(std::move(impl)) {} |
| 53 | |
| 54 | absl::StatusOr<Value> TraceImpl( |
| 55 | const ActivationInterface& activation, |
| 56 | EvaluationListener evaluation_listener, google::protobuf::Arena* absl_nonnull arena, |
| 57 | const EvaluateOptions& options) const override { |
| 58 | ABSL_DCHECK(arena != nullptr); |
| 59 | auto state = |
| 60 | impl_.MakeEvaluatorState(environment_->descriptor_pool.get(), |
| 61 | options.message_factory != nullptr |
| 62 | ? options.message_factory |
| 63 | : environment_->MutableMessageFactory(), |
| 64 | arena); |
| 65 | return impl_.EvaluateWithCallback(activation, options.embedder_context, |
| 66 | std::move(evaluation_listener), state); |
| 67 | } |
| 68 | |
| 69 | const TypeProvider& GetTypeProvider() const override { |
| 70 | return environment_->type_registry.GetComposedTypeProvider(); |
nothing calls this directly
no test coverage detected