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

Method currentSuper

libsolidity/analysis/GlobalContext.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157MagicVariableDeclaration const* GlobalContext::currentSuper() const
158{
159 if (!m_superPointer[m_currentContract])
160 {
161 Type const* type = TypeProvider::emptyTuple();
162 if (m_currentContract)
163 type = TypeProvider::typeType(TypeProvider::contract(*m_currentContract, true));
164 m_superPointer[m_currentContract] =
165 std::make_shared<MagicVariableDeclaration>(magicVariableToID("super"), "super", type);
166 }
167 return m_superPointer[m_currentContract].get();
168}
169
170}

Callers 3

visitMethod · 0.80
endVisitMethod · 0.80

Calls 2

magicVariableToIDFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected