| 142 | } |
| 143 | |
| 144 | MagicVariableDeclaration const* GlobalContext::currentThis() const |
| 145 | { |
| 146 | if (!m_thisPointer[m_currentContract]) |
| 147 | { |
| 148 | Type const* type = TypeProvider::emptyTuple(); |
| 149 | if (m_currentContract) |
| 150 | type = TypeProvider::contract(*m_currentContract); |
| 151 | m_thisPointer[m_currentContract] = |
| 152 | std::make_shared<MagicVariableDeclaration>(magicVariableToID("this"), "this", type); |
| 153 | } |
| 154 | return m_thisPointer[m_currentContract].get(); |
| 155 | } |
| 156 | |
| 157 | MagicVariableDeclaration const* GlobalContext::currentSuper() const |
| 158 | { |
no test coverage detected