MCPcopy Create free account
hub / github.com/argotorg/solidity / runtimeSourceMapping

Method runtimeSourceMapping

libsolidity/interface/CompilerStack.cpp:980–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978}
979
980std::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
999std::string const CompilerStack::filesystemFriendlyName(std::string const& _contractName) const
1000{

Callers 2

importEVMAssemblyMethod · 0.45
compileSolidityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected