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

Method Trace

eval/eval/cel_expression_flat_impl.cc:77–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 arena)) {}
76
77absl::StatusOr<CelValue> CelExpressionFlatImpl::Trace(
78 const BaseActivation& activation, CelEvaluationState* _state,
79 CelEvaluationListener callback) const {
80 auto state =
81 ::cel::internal::down_cast<CelExpressionFlatEvaluationState*>(_state);
82 state->state().Reset();
83 cel::interop_internal::AdapterActivationImpl modern_activation(activation);
84
85 CEL_ASSIGN_OR_RETURN(cel::Value value,
86 flat_expression_.EvaluateWithCallback(
87 modern_activation,
88 /*embedder_context=*/nullptr,
89 AdaptListener(callback), state->state()));
90
91 return cel::interop_internal::ModernValueToLegacyValueOrDie(state->arena(),
92 value);
93}
94
95std::unique_ptr<CelEvaluationState> CelExpressionFlatImpl::InitializeState(
96 google::protobuf::Arena* arena) const {

Callers 3

TESTFunction · 0.45
TEST_PFunction · 0.45
TESTFunction · 0.45

Calls 8

AdaptListenerFunction · 0.85
ResetMethod · 0.45
arenaMethod · 0.45
getMethod · 0.45
MutableMessageFactoryMethod · 0.45
EvaluateMethod · 0.45

Tested by 3

TESTFunction · 0.36
TEST_PFunction · 0.36
TESTFunction · 0.36