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

Method GenericStorageItem

libsolidity/codegen/LValue.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199
200template<bool IsTransient>
201GenericStorageItem<IsTransient>::GenericStorageItem(CompilerContext& _compilerContext, VariableDeclaration const& _declaration):
202 GenericStorageItem<IsTransient>(_compilerContext, *_declaration.annotation().type)
203{
204 solAssert(!_declaration.immutable(), "");
205 auto const& location = m_context.storageLocationOfVariable(_declaration);
206 m_context << location.first << u256(location.second);
207}
208
209template<bool IsTransient>
210GenericStorageItem<IsTransient>::GenericStorageItem(CompilerContext& _compilerContext, Type const& _type):

Callers

nothing calls this directly

Calls 6

immutableMethod · 0.80
isValueTypeMethod · 0.45
categoryMethod · 0.45
storageSizeMethod · 0.45
sizeOnStackMethod · 0.45

Tested by

no test coverage detected