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

Function hasType

bolt/type/Type.cpp:1247–1261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1245} // namespace
1246
1247bool hasType(const std::string& name) {
1248 if (singletonBuiltInTypes().count(name)) {
1249 return true;
1250 }
1251
1252 if (parametricBuiltinTypes().count(name)) {
1253 return true;
1254 }
1255
1256 if (customTypeExists(name)) {
1257 return true;
1258 }
1259
1260 return false;
1261}
1262
1263TypePtr getType(
1264 const std::string& name,

Callers 6

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
inferTypeWithSpacesFunction · 0.85
TESTFunction · 0.85

Calls 2

customTypeExistsFunction · 0.85
countMethod · 0.45

Tested by 4

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68