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

Function RegisterListSortFunction

extensions/lists_functions.cc:535–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535absl::Status RegisterListSortFunction(FunctionRegistry& registry) {
536 CEL_RETURN_IF_ERROR(
537 (UnaryFunctionAdapter<absl::StatusOr<Value>, const ListValue&>::
538 RegisterMemberOverload("sort", &ListSort, registry)));
539 CEL_RETURN_IF_ERROR(
540 (BinaryFunctionAdapter<
541 absl::StatusOr<Value>, const ListValue&,
542 const ListValue&>::RegisterMemberOverload("@sortByAssociatedKeys",
543 &ListSortByAssociatedKeys,
544 registry)));
545 return absl::OkStatus();
546}
547
548const Type& ListIntType() {
549 static absl::NoDestructor<Type> kInstance(

Callers 1

RegisterListsFunctionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected