mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2986 from ethereum/fixsourcelocationofvariabledecsatement
Fix source location of VariableDeclarationStatement.
This commit is contained in:
commit
010189d58e
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user