diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-16 21:46:17 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-17 07:03:30 +0800 |
commit | adbea475963ab376c2ae378a03bc58f2fb454b6e (patch) | |
tree | 4a6f0f245c39dd24c340012f6032bf77b8a86c79 /AST.h | |
parent | 062b51e7bdf572abba25a76fc8c3bb6e96da71c9 (diff) | |
download | dexon-solidity-adbea475963ab376c2ae378a03bc58f2fb454b6e.tar.gz dexon-solidity-adbea475963ab376c2ae378a03bc58f2fb454b6e.tar.zst dexon-solidity-adbea475963ab376c2ae378a03bc58f2fb454b6e.zip |
Minor issues, grammar update, new ForStatement test
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -509,6 +509,9 @@ private: ASTPointer<Statement> m_body; }; +/** + * For loop statement + */ class ForStatement: public BreakableStatement { public: @@ -527,9 +530,13 @@ public: virtual void checkTypeRequirements() override; private: + /// For statement's initialization expresion. for(XXX; ; ). Can be empty ASTPointer<Statement> m_initExpression; + /// For statement's condition expresion. for(; XXX ; ). Can be empty ASTPointer<Expression> m_condExpression; + /// For statement's loop expresion. for(;;XXX). Can be empty ASTPointer<ExpressionStatement> m_loopExpression; + /// The body of the loop ASTPointer<Statement> m_body; }; |