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

Method immutableMemoryOffset

libsolidity/codegen/CompilerContext.cpp:83–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83size_t CompilerContext::immutableMemoryOffset(VariableDeclaration const& _variable) const
84{
85 solAssert(m_immutableVariables.count(&_variable), "Memory offset of unknown immutable queried.");
86 solAssert(m_runtimeContext, "Attempted to fetch the memory offset of an immutable variable during runtime code generation.");
87 return m_immutableVariables.at(&_variable);
88}
89
90std::vector<std::string> CompilerContext::immutableVariableSlotNames(VariableDeclaration const& _variable)
91{

Callers 4

retrieveValueMethod · 0.45
storeValueMethod · 0.45
setToZeroMethod · 0.45

Calls 2

atMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected