| 109 | } |
| 110 | |
| 111 | SubAssemblyID ContractCompiler::compileConstructor( |
| 112 | ContractDefinition const& _contract, |
| 113 | std::map<ContractDefinition const*, std::shared_ptr<Compiler const>> const& _otherCompilers |
| 114 | ) |
| 115 | { |
| 116 | CompilerContext::LocationSetter locationSetter(m_context, _contract); |
| 117 | if (_contract.isLibrary()) |
| 118 | return deployLibrary(_contract); |
| 119 | else |
| 120 | { |
| 121 | initializeContext(_contract, _otherCompilers); |
| 122 | return packIntoContractCreator(_contract); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | void ContractCompiler::initializeContext( |
| 127 | ContractDefinition const& _contract, |
no test coverage detected