| 80 | } |
| 81 | |
| 82 | std::optional<TypeKind> tryMapNameToTypeKind(const std::string& name) { |
| 83 | auto found = getTypeStringMap().find(name); |
| 84 | |
| 85 | if (found == getTypeStringMap().end()) { |
| 86 | return std::nullopt; |
| 87 | } |
| 88 | |
| 89 | return found->second; |
| 90 | } |
| 91 | |
| 92 | TypeKind mapNameToTypeKind(const std::string& name) { |
| 93 | auto found = getTypeStringMap().find(name); |
no test coverage detected