| 515 | } |
| 516 | |
| 517 | absl::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 | |
| 527 | absl::StatusOr<std::unique_ptr<ExpressionStep>> CreateFunctionStep( |
| 528 | const cel::CallExpr& call_expr, int64_t expr_id, |