| 120 | } |
| 121 | |
| 122 | void ErrorContainer::appendErrors(ErrorContainer& rhs) { |
| 123 | FileSystem* const fileSystem = FileSystem::getInstance(); |
| 124 | for (uint32_t i = 0; i < rhs.m_errors.size(); i++) { |
| 125 | Error err = rhs.m_errors[i]; |
| 126 | if (!err.m_reported) { |
| 127 | // Translate IDs to master symbol table |
| 128 | for (auto& loc : err.m_locations) { |
| 129 | if (loc.m_fileId) |
| 130 | loc.m_fileId = fileSystem->copy(loc.m_fileId, m_symbolTable); |
| 131 | if (loc.m_object) { |
| 132 | loc.m_object = |
| 133 | m_symbolTable->copyFrom(loc.m_object, rhs.m_symbolTable); |
| 134 | } |
| 135 | } |
| 136 | addError(err); |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | std::tuple<std::string, bool, bool> ErrorContainer::createErrorMessage( |
| 142 | const Error& msg, bool reentrantPython) const { |
no test coverage detected