mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
correct true/false literal's source
Before: Literal, token: true value: true Type: bool Source: "true;" After: Literal, token: true value: true Type: bool Source: "true" Extra token is removed.
This commit is contained in:
parent
e7098958d0
commit
e4f713b55b
@ -1004,6 +1004,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
|
|||||||
{
|
{
|
||||||
case Token::TrueLiteral:
|
case Token::TrueLiteral:
|
||||||
case Token::FalseLiteral:
|
case Token::FalseLiteral:
|
||||||
|
nodeFactory.markEndPosition();
|
||||||
expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance());
|
expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance());
|
||||||
break;
|
break;
|
||||||
case Token::Number:
|
case Token::Number:
|
||||||
|
Loading…
Reference in New Issue
Block a user