| 155 | } |
| 156 | |
| 157 | MagicVariableDeclaration 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 | } |
no test coverage detected