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

Method FindLazyOverloads

eval/compiler/resolver.cc:176–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176std::vector<cel::FunctionRegistry::LazyOverload> Resolver::FindLazyOverloads(
177 absl::string_view name, bool receiver_style,
178 const std::vector<cel::Kind>& types, int64_t expr_id) const {
179 // Resolve the fully qualified names and then search the function registry
180 // for possible matches.
181 std::vector<cel::FunctionRegistry::LazyOverload> funcs;
182 auto names = FullyQualifiedNames(name, expr_id);
183 for (const auto& name : names) {
184 funcs = function_registry_.FindLazyOverloads(name, receiver_style, types);
185 if (!funcs.empty()) {
186 return funcs;
187 }
188 }
189 return funcs;
190}
191
192std::vector<cel::FunctionRegistry::LazyOverload> Resolver::FindLazyOverloads(
193 absl::string_view name, bool receiver_style, size_t arity,

Callers 4

IsConstExprFunction · 0.45
TEST_FFunction · 0.45
OverloadExistsFunction · 0.45

Calls 2

emptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.36