TODO: cache this string
| 1090 | |
| 1091 | /// TODO: cache this string |
| 1092 | std::string CompilerStack::assemblyString(std::string const& _contractName, StringMap const& _sourceCodes) const |
| 1093 | { |
| 1094 | solAssert(m_stackState == CompilationSuccessful, "Compilation was not successful."); |
| 1095 | |
| 1096 | Contract const& currentContract = contract(_contractName); |
| 1097 | if (currentContract.evmAssembly) |
| 1098 | return currentContract.evmAssembly->assemblyString(m_debugInfoSelection, _sourceCodes); |
| 1099 | else |
| 1100 | return std::string(); |
| 1101 | } |
| 1102 | |
| 1103 | /// TODO: cache the JSON |
| 1104 | Json CompilerStack::assemblyJSON(std::string const& _contractName) const |
no outgoing calls
no test coverage detected