| 857 | } |
| 858 | |
| 859 | Result LangModule::nodeTypeFromName(boost::string_view name, const nlohmann::json& jsonData, |
| 860 | std::unique_ptr<NodeType>* toFill) { |
| 861 | Result res; |
| 862 | |
| 863 | auto iter = nodes.find(name.to_string()); |
| 864 | if (iter != nodes.end()) { |
| 865 | *toFill = iter->second(jsonData, res); |
| 866 | return res; |
| 867 | } |
| 868 | |
| 869 | res.addEntry("E37", "Failed to find node in module", |
| 870 | {{"Module", "lang"}, {"Requested Node Type", name.to_string()}}); |
| 871 | |
| 872 | return res; |
| 873 | } |
| 874 | |
| 875 | LangModule::~LangModule() { |
| 876 | #if LLVM_VERSION_LESS_EQUAL(3, 6) |
no test coverage detected