aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.h
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-02-17 23:21:38 +0800
committerLiana Husikyan <liana@ethdev.com>2015-02-21 05:50:34 +0800
commit52050201e39b823ea9e6133e47c7e9e779dc1f07 (patch)
treebf415cf6c45a0f6ee9468849c5c708217f366260 /Parser.h
parent26132363d5a11d762224cc7c8acc6b8c854cf646 (diff)
downloaddexon-solidity-52050201e39b823ea9e6133e47c7e9e779dc1f07.tar.gz
dexon-solidity-52050201e39b823ea9e6133e47c7e9e779dc1f07.tar.zst
dexon-solidity-52050201e39b823ea9e6133e47c7e9e779dc1f07.zip
Inline member initialisation
renamed VariableDefinition class to VariableDeclarationStatement added tests
Diffstat (limited to 'Parser.h')
-rw-r--r--Parser.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Parser.h b/Parser.h
index 1bb4ea97..4034aec8 100644
--- a/Parser.h
+++ b/Parser.h
@@ -51,6 +51,7 @@ private:
bool isStateVariable = false;
bool allowIndexed = false;
bool allowEmptyName = false;
+ bool allowInitialValue = false;
};
///@{
@@ -76,8 +77,8 @@ private:
ASTPointer<IfStatement> parseIfStatement();
ASTPointer<WhileStatement> parseWhileStatement();
ASTPointer<ForStatement> parseForStatement();
- ASTPointer<Statement> parseVarDefOrExprStmt();
- ASTPointer<VariableDefinition> parseVariableDefinition();
+ ASTPointer<Statement> parseVarDeclOrExprStmt();
+ ASTPointer<VariableDeclarationStatement> parseVariableDeclarationStatement();
ASTPointer<ExpressionStatement> parseExpressionStatement();
ASTPointer<Expression> parseExpression();
ASTPointer<Expression> parseBinaryExpression(int _minPrecedence = 4);
@@ -91,8 +92,8 @@ private:
///@{
///@name Helper functions
- /// Peeks ahead in the scanner to determine if a variable definition is going to follow
- bool peekVariableDefinition();
+ /// Peeks ahead in the scanner to determine if a variable declaration statement is going to follow
+ bool peekVariableDeclarationStatement();
/// If current token value is not _value, throw exception otherwise advance token.
void expectToken(Token::Value _value);