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

Method immutableMemoryOffset

libsolidity/codegen/ir/IRGenerationContext.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102size_t IRGenerationContext::immutableMemoryOffset(VariableDeclaration const& _variable) const
103{
104 solAssert(
105 m_immutableVariables.count(&_variable),
106 "Unknown immutable variable: " + _variable.name()
107 );
108 return m_immutableVariables.at(&_variable);
109}
110
111size_t IRGenerationContext::immutableMemoryOffsetRelative(VariableDeclaration const& _variable) const
112{

Callers 3

writeToLValueMethod · 0.45
readFromLValueMethod · 0.45
deployCodeMethod · 0.45

Calls 3

atMethod · 0.80
countMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected