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.
|
* Parser: Better error message for unexpected trailing comma in parameter lists.
|
||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
* Parser: Fix source location of VariableDeclarationStatement.
|
||||||
|
|
||||||
### 0.4.17 (2017-09-21)
|
### 0.4.17 (2017-09-21)
|
||||||
|
|
||||||
|
@ -1133,6 +1133,7 @@ ASTPointer<VariableDeclarationStatement> Parser::parseVariableDeclarationStateme
|
|||||||
options.allowVar = true;
|
options.allowVar = true;
|
||||||
options.allowLocationSpecifier = true;
|
options.allowLocationSpecifier = true;
|
||||||
variables.push_back(parseVariableDeclaration(options, _lookAheadArrayType));
|
variables.push_back(parseVariableDeclaration(options, _lookAheadArrayType));
|
||||||
|
nodeFactory.setEndPositionFromNode(variables.back());
|
||||||
}
|
}
|
||||||
if (m_scanner->currentToken() == Token::Assign)
|
if (m_scanner->currentToken() == Token::Assign)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user