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

Function CreateFunctionStep

eval/eval/function_step.cc:517–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517absl::StatusOr<std::unique_ptr<ExpressionStep>> CreateFunctionStep(
518 const cel::CallExpr& call_expr, int64_t expr_id,
519 std::vector<cel::FunctionRegistry::LazyOverload> lazy_overloads) {
520 bool receiver_style = call_expr.has_target();
521 size_t num_args = call_expr.args().size() + (receiver_style ? 1 : 0);
522 const std::string& name = call_expr.function();
523 return std::make_unique<LazyFunctionStep>(name, num_args, receiver_style,
524 std::move(lazy_overloads), expr_id);
525}
526
527absl::StatusOr<std::unique_ptr<ExpressionStep>> CreateFunctionStep(
528 const cel::CallExpr& call_expr, int64_t expr_id,

Callers 2

MakeTestFunctionStepFunction · 0.85

Calls 3

has_targetMethod · 0.80
argsMethod · 0.80
sizeMethod · 0.45

Tested by 1

MakeTestFunctionStepFunction · 0.68