diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-16 23:52:47 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-17 07:03:30 +0800 |
commit | 5c05b8d725f383185ccd3afc700c2c8bac33b16f (patch) | |
tree | 8d71e2a760d364f52ce34ff461020041804816d2 /AST.h | |
parent | adbea475963ab376c2ae378a03bc58f2fb454b6e (diff) | |
download | dexon-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |