Merge pull request #2986 from ethereum/fixsourcelocationofvariabledecsatement

Fix source location of VariableDeclarationStatement.
This commit is contained in:
Alex Beregszaszi 2017-09-28 13:50:23 +01:00 committed by GitHub
commit 010189d58e
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ Features:
* Parser: Better error message for unexpected trailing comma in parameter lists.
Bugfixes:
* Parser: Fix source location of VariableDeclarationStatement.
### 0.4.17 (2017-09-21)

View File

@ -1133,6 +1133,7 @@ ASTPointer<VariableDeclarationStatement> Parser::parseVariableDeclarationStateme
options.allowVar = true;
options.allowLocationSpecifier = true;
variables.push_back(parseVariableDeclaration(options, _lookAheadArrayType));
nodeFactory.setEndPositionFromNode(variables.back());
}
if (m_scanner->currentToken() == Token::Assign)
{