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

Function LookupSlot

eval/eval/ident_step.cc:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86absl::StatusOr<ComprehensionSlots::Slot* absl_nonnull> LookupSlot(
87 absl::string_view name, size_t slot_index, ExecutionFrameBase& frame) {
88 ComprehensionSlots::Slot* slot = frame.comprehension_slots().Get(slot_index);
89 if (!slot->Has()) {
90 return absl::InternalError(
91 absl::StrCat("Comprehension variable accessed out of scope: ", name));
92 }
93 return slot;
94}
95
96class SlotStep : public ExpressionStepBase {
97 public:

Callers 1

PostVisitIdentMethod · 0.85

Calls 2

GetMethod · 0.45
HasMethod · 0.45

Tested by

no test coverage detected