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

Method FindValue

eval/public/activation.cc:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace runtime {
16
17absl::optional<CelValue> Activation::FindValue(absl::string_view name,
18 google::protobuf::Arena* arena) const {
19 auto entry = value_map_.find(name);
20
21 // No entry found.
22 if (entry == value_map_.end()) {
23 return {};
24 }
25
26 return entry->second.RetrieveValue(arena);
27}
28
29absl::Status Activation::InsertFunction(std::unique_ptr<CelFunction> function) {
30 auto& overloads = function_map_[function->descriptor().name()];

Callers 3

TESTFunction · 0.80
TESTFunction · 0.80
FindVariableMethod · 0.80

Calls 2

RetrieveValueMethod · 0.80
endMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64