TODO: cache the JSON
| 1102 | |
| 1103 | /// TODO: cache the JSON |
| 1104 | Json 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 | |
| 1116 | std::vector<std::string> CompilerStack::sourceNames() const |
| 1117 | { |
no outgoing calls
no test coverage detected