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

Method registerStateVariables

libsolidity/codegen/ContractCompiler.cpp:571–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571void ContractCompiler::registerStateVariables(ContractDefinition const& _contract)
572{
573 for (auto const location: {DataLocation::Storage, DataLocation::Transient})
574 for (auto const& var: ContractType(_contract).linearizedStateVariables(location))
575 m_context.addStateVariable(*std::get<0>(var), std::get<1>(var), std::get<2>(var));
576}
577
578void ContractCompiler::registerImmutableVariables(ContractDefinition const& _contract)
579{

Callers

nothing calls this directly

Calls 3

ContractTypeClass · 0.85
addStateVariableMethod · 0.45

Tested by

no test coverage detected