aboutsummaryrefslogtreecommitdiffstats
path: root/GlobalContext.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-27 21:32:59 +0800
committerChristian <c@ethdev.com>2015-01-29 07:29:43 +0800
commitae5a6a235c9d0996a712903e0cfd0560b326bbad (patch)
tree51e9e64e0a4f59172d4de9345e15100d3fd96268 /GlobalContext.cpp
parentb5a786dda19e54fa587b1b693e7a139818d65b9e (diff)
downloaddexon-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.cpp9
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();
+
+}
+
}
}