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

Method addStateVariable

libsolidity/codegen/CompilerContext.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62using namespace solidity::langutil;
63
64void CompilerContext::addStateVariable(
65 VariableDeclaration const& _declaration,
66 u256 const& _storageOffset,
67 unsigned _byteOffset
68)
69{
70 m_stateVariables[&_declaration] = std::make_pair(_storageOffset, _byteOffset);
71}
72
73void CompilerContext::addImmutable(VariableDeclaration const& _variable)
74{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected