| 130 | } // anonymous namespace |
| 131 | |
| 132 | Json ethdebug::program(std::string_view _name, unsigned _sourceID, Assembly const& _assembly, LinkerObject const& _linkerObject) |
| 133 | { |
| 134 | return schema::Program{ |
| 135 | .compilation = std::nullopt, |
| 136 | .contract = { |
| 137 | .name = std::string{_name}, |
| 138 | .definition = { |
| 139 | .source = { |
| 140 | .id = {_sourceID}, |
| 141 | .type = std::nullopt |
| 142 | }, |
| 143 | .range = std::nullopt |
| 144 | } |
| 145 | }, |
| 146 | .environment = _assembly.isCreation() ? schema::Program::Environment::CREATE : schema::Program::Environment::CALL, |
| 147 | .context = std::nullopt, |
| 148 | .instructions = programInstructions(_assembly, _linkerObject, _sourceID) |
| 149 | }; |
| 150 | } |
| 151 | |
| 152 | Json ethdebug::resources(std::vector<std::string> const& _sources, std::string const& _version) |
| 153 | { |
no test coverage detected