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

Function CreateContainerAccessStep

eval/eval/container_access_step.cc:360–368  ·  view source on GitHub ↗

Factory method for Select - based Execution step

Source from the content-addressed store, hash-verified

358
359// Factory method for Select - based Execution step
360absl::StatusOr<std::unique_ptr<ExpressionStep>> CreateContainerAccessStep(
361 const cel::CallExpr& call, int64_t expr_id, bool enable_optional_types) {
362 int arg_count = call.args().size() + (call.has_target() ? 1 : 0);
363 if (arg_count != kNumContainerAccessArguments) {
364 return absl::InvalidArgumentError(absl::StrCat(
365 "Invalid argument count for index operation: ", arg_count));
366 }
367 return std::make_unique<ContainerAccessStep>(expr_id, enable_optional_types);
368}
369
370} // namespace google::api::expr::runtime

Callers 3

HandleIndexMethod · 0.85
EvaluateAttributeHelperFunction · 0.85
TEST_FFunction · 0.85

Calls 3

argsMethod · 0.80
has_targetMethod · 0.80
sizeMethod · 0.45

Tested by 2

EvaluateAttributeHelperFunction · 0.68
TEST_FFunction · 0.68