aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-16 21:46:17 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-17 07:03:30 +0800
commitadbea475963ab376c2ae378a03bc58f2fb454b6e (patch)
tree4a6f0f245c39dd24c340012f6032bf77b8a86c79 /AST.h
parent062b51e7bdf572abba25a76fc8c3bb6e96da71c9 (diff)
downloaddexon-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/AST.h b/AST.h
index 2fb6a2e3..dcbca1ee 100644
--- a/AST.h
+++ b/AST.h
@@ -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;
};