MCPcopy Create free account
hub / github.com/bytedance/bolt / resolveVectorFunction

Function resolveVectorFunction

bolt/expression/VectorFunction.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::shared_ptr<const Type> resolveVectorFunction(
56 const std::string& functionName,
57 const std::vector<TypePtr>& argTypes) {
58 if (auto vectorFunctionSignatures =
59 exec::getVectorFunctionSignatures(functionName)) {
60 for (const auto& signature : vectorFunctionSignatures.value()) {
61 exec::SignatureBinder binder(*signature, argTypes);
62 if (binder.tryBind()) {
63 return binder.tryResolveReturnType();
64 }
65 }
66 }
67
68 return nullptr;
69}
70
71std::shared_ptr<VectorFunction> getVectorFunction(
72 const std::string& name,

Callers 3

getVectorFunctionFunction · 0.70

Calls 4

valueMethod · 0.45
tryBindMethod · 0.45
tryResolveReturnTypeMethod · 0.45

Tested by

no test coverage detected