| 978 | } |
| 979 | |
| 980 | std::string const* CompilerStack::runtimeSourceMapping(std::string const& _contractName) const |
| 981 | { |
| 982 | solAssert(m_stackState == CompilationSuccessful, "Compilation was not successful."); |
| 983 | |
| 984 | // TODO |
| 985 | if (m_eofVersion.has_value()) |
| 986 | return nullptr; |
| 987 | |
| 988 | Contract const& c = contract(_contractName); |
| 989 | if (!c.runtimeSourceMapping) |
| 990 | { |
| 991 | if (auto items = runtimeAssemblyItems(_contractName)) |
| 992 | c.runtimeSourceMapping.emplace( |
| 993 | evmasm::AssemblyItem::computeSourceMapping(*items, sourceIndices()) |
| 994 | ); |
| 995 | } |
| 996 | return c.runtimeSourceMapping ? &*c.runtimeSourceMapping : nullptr; |
| 997 | } |
| 998 | |
| 999 | std::string const CompilerStack::filesystemFriendlyName(std::string const& _contractName) const |
| 1000 | { |
no outgoing calls
no test coverage detected