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

Method compileConstructor

libsolidity/codegen/ContractCompiler.cpp:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111SubAssemblyID 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
126void ContractCompiler::initializeContext(
127 ContractDefinition const& _contract,

Callers 1

compileContractMethod · 0.80

Calls 1

isLibraryMethod · 0.80

Tested by

no test coverage detected