diff options
author | Christian <c@ethdev.com> | 2015-01-27 21:32:59 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-29 07:29:43 +0800 |
commit | ae5a6a235c9d0996a712903e0cfd0560b326bbad (patch) | |
tree | 51e9e64e0a4f59172d4de9345e15100d3fd96268 /GlobalContext.cpp | |
parent | b5a786dda19e54fa587b1b693e7a139818d65b9e (diff) | |
download | dexon-solidity-ae5a6a235c9d0996a712903e0cfd0560b326bbad.tar dexon-solidity-ae5a6a235c9d0996a712903e0cfd0560b326bbad.tar.gz dexon-solidity-ae5a6a235c9d0996a712903e0cfd0560b326bbad.tar.bz2 dexon-solidity-ae5a6a235c9d0996a712903e0cfd0560b326bbad.tar.lz dexon-solidity-ae5a6a235c9d0996a712903e0cfd0560b326bbad.tar.xz dexon-solidity-ae5a6a235c9d0996a712903e0cfd0560b326bbad.tar.zst dexon-solidity-ae5a6a235c9d0996a712903e0cfd0560b326bbad.zip |
Super keyword.
Diffstat (limited to 'GlobalContext.cpp')
-rw-r--r-- | GlobalContext.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/GlobalContext.cpp b/GlobalContext.cpp index c7eea92d..40a498c8 100644 --- a/GlobalContext.cpp +++ b/GlobalContext.cpp @@ -83,5 +83,14 @@ MagicVariableDeclaration const* GlobalContext::getCurrentThis() const } +MagicVariableDeclaration const* GlobalContext::getCurrentSuper() const +{ + if (!m_superPointer[m_currentContract]) + m_superPointer[m_currentContract] = make_shared<MagicVariableDeclaration>( + "super", make_shared<ContractType>(*m_currentContract, true)); + return m_superPointer[m_currentContract].get(); + +} + } } |