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

Function resolveFunction

bolt/functions/FunctionRegistry.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::shared_ptr<const Type> resolveFunction(
77 const std::string& functionName,
78 const std::vector<TypePtr>& argTypes) {
79 // Check if this is a simple function.
80 if (auto returnType = resolveSimpleFunction(functionName, argTypes)) {
81 return returnType;
82 }
83
84 // Check if VectorFunctions has this function name + signature.
85 return resolveVectorFunction(functionName, argTypes);
86}
87
88std::shared_ptr<const Type> resolveFunctionOrCallableSpecialForm(
89 const std::string& functionName,

Callers 6

TEST_FFunction · 0.85
toBoltExprMethod · 0.85

Calls 2

resolveSimpleFunctionFunction · 0.85
resolveVectorFunctionFunction · 0.70

Tested by 3

TEST_FFunction · 0.68