| 1245 | } // namespace |
| 1246 | |
| 1247 | bool 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 | |
| 1263 | TypePtr getType( |
| 1264 | const std::string& name, |