aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-16 23:52:47 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-17 07:03:30 +0800
commit5c05b8d725f383185ccd3afc700c2c8bac33b16f (patch)
tree8d71e2a760d364f52ce34ff461020041804816d2 /AST.h
parentadbea475963ab376c2ae378a03bc58f2fb454b6e (diff)
downloaddexon-solidity-5c05b8d725f383185ccd3afc700c2c8bac33b16f.tar.gz
dexon-solidity-5c05b8d725f383185ccd3afc700c2c8bac33b16f.tar.zst
dexon-solidity-5c05b8d725f383185ccd3afc700c2c8bac33b16f.zip
Solidity ForStatement Compiler part
- Work in progress
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/AST.h b/AST.h
index dcbca1ee..c8369044 100644
--- a/AST.h
+++ b/AST.h
@@ -529,6 +529,11 @@ public:
virtual void accept(ASTConstVisitor& _visitor) const override;
virtual void checkTypeRequirements() override;
+ Statement const* getInitializationExpression() const { return m_initExpression.get(); }
+ Expression const* getCondition() const { return m_condExpression.get(); }
+ ExpressionStatement const* getLoopExpression() const { return m_loopExpression.get(); }
+ Statement const& getBody() const { return *m_body; }
+
private:
/// For statement's initialization expresion. for(XXX; ; ). Can be empty
ASTPointer<Statement> m_initExpression;