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

Method sourceIndices

libevmasm/EVMAssemblyStack.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86std::map<std::string, unsigned> EVMAssemblyStack::sourceIndices() const
87{
88 solAssert(m_evmAssembly);
89 return m_sourceList
90 | ranges::views::enumerate
91 | ranges::views::transform([](auto const& _source) { return std::make_pair(_source.second, _source.first); })
92 | ranges::to<std::map<std::string, unsigned>>;
93}
94
95std::string const* EVMAssemblyStack::sourceMapping(std::string const& _contractName) const
96{

Callers 2

handleCombinedJSONMethod · 0.45
handleAstMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected