From e4f713b55bf0af4135b38170c4b8b3509c7ead1a Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Fri, 18 Dec 2015 23:48:34 +0800 Subject: 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. --- libsolidity/parsing/Parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 2b886121..994b031a 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -1004,6 +1004,7 @@ ASTPointer Parser::parsePrimaryExpression() { case Token::TrueLiteral: case Token::FalseLiteral: + nodeFactory.markEndPosition(); expression = nodeFactory.createNode(token, getLiteralAndAdvance()); break; case Token::Number: -- cgit