MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TraceImpl

Method TraceImpl

runtime/internal/runtime_impl.cc:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 4

MakeEvaluatorStateMethod · 0.80
EvaluateWithCallbackMethod · 0.80
getMethod · 0.45
MutableMessageFactoryMethod · 0.45

Tested by

no test coverage detected