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

Function getSignatureMap

bolt/expression/SimpleFunctionRegistry.cpp:64–70  ·  view source on GitHub ↗

This function is not thread safe should be called only from within a syncrhronized read region of registeredFunctions_.

Source from the content-addressed store, hash-verified

62// This function is not thread safe should be called only from within a
63// syncrhronized read region of registeredFunctions_.
64const SignatureMap* getSignatureMap(
65 const std::string& name,
66 const FunctionMap& registeredFunctions) {
67 const auto sanitizedName = sanitizeName(name);
68 const auto it = registeredFunctions.find(sanitizedName);
69 return it != registeredFunctions.end() ? &it->second : nullptr;
70}
71} // namespace
72
73std::unordered_map<

Callers 2

getFunctionSignaturesMethod · 0.85
resolveFunctionMethod · 0.85

Calls 3

sanitizeNameFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected