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

Method assemblyJSON

libsolidity/interface/CompilerStack.cpp:1104–1114  ·  view source on GitHub ↗

TODO: cache the JSON

Source from the content-addressed store, hash-verified

1102
1103/// TODO: cache the JSON
1104Json CompilerStack::assemblyJSON(std::string const& _contractName) const
1105{
1106 solAssert(m_stackState == CompilationSuccessful, "Compilation was not successful.");
1107 solUnimplementedAssert(!isExperimentalSolidity());
1108
1109 Contract const& currentContract = contract(_contractName);
1110 if (currentContract.evmAssembly)
1111 return currentContract.evmAssembly->assemblyJSON(sourceIndices());
1112 else
1113 return Json();
1114}
1115
1116std::vector<std::string> CompilerStack::sourceNames() const
1117{

Callers 2

importEVMAssemblyMethod · 0.45
compileSolidityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected