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

Method storageLocationOfVariable

libsolidity/codegen/CompilerContext.cpp:322–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322std::pair<u256, unsigned> CompilerContext::storageLocationOfVariable(Declaration const& _declaration) const
323{
324 auto it = m_stateVariables.find(&_declaration);
325 solAssert(it != m_stateVariables.end(), "Variable not found in storage.");
326 return it->second;
327}
328
329CompilerContext& CompilerContext::appendJump(evmasm::AssemblyItem::JumpType _jumpType)
330{

Callers 3

visitMethod · 0.80
GenericStorageItemMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected