aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Parser.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2015-12-18 23:48:34 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2015-12-18 23:48:34 +0800
commite4f713b55bf0af4135b38170c4b8b3509c7ead1a (patch)
tree2d2e170373a74cc3c91b7c3246b749946daf5eef /libsolidity/parsing/Parser.cpp
parente7098958d00dd6e7618c2283168ddfa11ab8ded3 (diff)
downloaddexon-solidity-e4f713b55bf0af4135b38170c4b8b3509c7ead1a.tar.gz
dexon-solidity-e4f713b55bf0af4135b38170c4b8b3509c7ead1a.tar.zst
dexon-solidity-e4f713b55bf0af4135b38170c4b8b3509c7ead1a.zip
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.
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-rw-r--r--libsolidity/parsing/Parser.cpp1
1 files changed, 1 insertions, 0 deletions
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<Expression> Parser::parsePrimaryExpression()
{
case Token::TrueLiteral:
case Token::FalseLiteral:
+ nodeFactory.markEndPosition();
expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance());
break;
case Token::Number: