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

Method hasPart

libsolidity/codegen/ir/IRVariable.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool IRVariable::hasPart(std::string const& _name) const
55{
56 for (auto const& [itemName, itemType]: m_type.stackItems())
57 if (itemName == _name)
58 {
59 solAssert(itemName.empty() || itemType, "");
60 return true;
61 }
62 return false;
63}
64
65std::vector<std::string> IRVariable::stackSlots() const
66{

Callers 1

translateReferenceMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected