| 105 | } |
| 106 | |
| 107 | std::vector<const CelFunctionDescriptor*> |
| 108 | CelFunctionRegistry::FindLazyOverloads( |
| 109 | absl::string_view name, bool receiver_style, |
| 110 | const std::vector<CelValue::Type>& types) const { |
| 111 | std::vector<LazyOverload> lazy_overloads = |
| 112 | modern_registry_.FindLazyOverloads(name, receiver_style, types); |
| 113 | std::vector<const CelFunctionDescriptor*> result; |
| 114 | result.reserve(lazy_overloads.size()); |
| 115 | |
| 116 | for (const LazyOverload& overload : lazy_overloads) { |
| 117 | result.push_back(&overload.descriptor); |
| 118 | } |
| 119 | return result; |
| 120 | } |
| 121 | |
| 122 | } // namespace google::api::expr::runtime |