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

Method Evaluate

eval/eval/ident_step.cc:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75absl::Status IdentStep::Evaluate(ExecutionFrame* frame) const {
76 Value value;
77 AttributeTrail attribute;
78
79 CEL_RETURN_IF_ERROR(LookupIdent(name_, *frame, value, attribute));
80
81 frame->value_stack().Push(std::move(value), std::move(attribute));
82
83 return absl::OkStatus();
84}
85
86absl::StatusOr<ComprehensionSlots::Slot* absl_nonnull> LookupSlot(
87 absl::string_view name, size_t slot_index, ExecutionFrameBase& frame) {

Callers 15

MakeStackMachinePathFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
RunExpressionMethod · 0.45
TEST_FFunction · 0.45
EvaluateAttributeHelperFunction · 0.45
RunShadowableExpressionFunction · 0.45
RunCreateMapExpressionFunction · 0.45
RunMethod · 0.45

Calls 2

LookupIdentFunction · 0.85
PushMethod · 0.45

Tested by 14

MakeStackMachinePathFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
RunExpressionMethod · 0.36
TEST_FFunction · 0.36
EvaluateAttributeHelperFunction · 0.36
RunShadowableExpressionFunction · 0.36
RunCreateMapExpressionFunction · 0.36
RunMethod · 0.36
TEST_PFunction · 0.36