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

Method sourceIndices

libsolidity/interface/CompilerStack.cpp:1121–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121std::map<std::string, unsigned> CompilerStack::sourceIndices() const
1122{
1123 std::map<std::string, unsigned> indices;
1124 unsigned index = 0;
1125 for (auto const& s: m_sources)
1126 indices[s.first] = index++;
1127 solAssert(!indices.count(CompilerContext::yulUtilityFileName()), "");
1128 indices[CompilerContext::yulUtilityFileName()] = index++;
1129 return indices;
1130}
1131
1132Json const& CompilerStack::contractABI(std::string const& _contractName) const
1133{

Callers 4

compileSolidityMethod · 0.45
dispenseLocationCommentFunction · 0.45
generateMethod · 0.45
resetContextMethod · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected