diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-24 00:55:58 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 04:46:16 +0800 |
commit | 468f26b1cce189ea47af9f99b8efe0834a3eed8c (patch) | |
tree | b049dd6ceba6b7667076ea58a3d26640e4691075 /AST.cpp | |
parent | 5c7359aa09c46eb7fc27a70e328adde93d4844ab (diff) | |
download | dexon-solidity-468f26b1cce189ea47af9f99b8efe0834a3eed8c.tar.gz dexon-solidity-468f26b1cce189ea47af9f99b8efe0834a3eed8c.tar.zst dexon-solidity-468f26b1cce189ea47af9f99b8efe0834a3eed8c.zip |
Modifications to Mix to adapt to FunctionDescription
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -607,6 +607,16 @@ Declaration const* FunctionDescription::getDeclaration() const return m_description.second; } +VariableDeclaration const* FunctionDescription::getVariableDeclaration() const +{ + return dynamic_cast<VariableDeclaration const*>(m_description.second); +} + +FunctionDefinition const* FunctionDescription::getFunctionDefinition() const +{ + return dynamic_cast<FunctionDefinition const*>(m_description.second); +} + shared_ptr<FunctionType const> FunctionDescription::getFunctionTypeShared() const { return m_description.first; |