aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-24 00:55:58 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-29 04:46:16 +0800
commit468f26b1cce189ea47af9f99b8efe0834a3eed8c (patch)
treeb049dd6ceba6b7667076ea58a3d26640e4691075 /AST.cpp
parent5c7359aa09c46eb7fc27a70e328adde93d4844ab (diff)
downloaddexon-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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/AST.cpp b/AST.cpp
index e4b5ed7d..ca76d023 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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;