diff options
author | Lu Guanqun <guanqun.lu@gmail.com> | 2015-12-18 23:48:34 +0800 |
---|---|---|
committer | Lu Guanqun <guanqun.lu@gmail.com> | 2015-12-18 23:48:34 +0800 |
commit | e4f713b55bf0af4135b38170c4b8b3509c7ead1a (patch) | |
tree | 2d2e170373a74cc3c91b7c3246b749946daf5eef /libsolidity/parsing | |
parent | e7098958d00dd6e7618c2283168ddfa11ab8ded3 (diff) | |
download | dexon-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')
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 1 |
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: |