diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-05-09 19:02:20 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-05-09 20:08:22 +0800 |
commit | 02380113d417b298282c81bf35ddb596006ce77a (patch) | |
tree | 60400b00f1dda9d9ef23bea28ce8c238af68f372 /libsolidity/parsing/ParserBase.cpp | |
parent | 87826a7d87991f9c054d27def6fb9a79eb18e3ae (diff) | |
download | dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar.gz dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar.zst dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.zip |
Use the entire token as source location for parser errors.
Diffstat (limited to 'libsolidity/parsing/ParserBase.cpp')
-rw-r--r-- | libsolidity/parsing/ParserBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/parsing/ParserBase.cpp b/libsolidity/parsing/ParserBase.cpp index d0c7a551..71133746 100644 --- a/libsolidity/parsing/ParserBase.cpp +++ b/libsolidity/parsing/ParserBase.cpp @@ -106,10 +106,10 @@ void ParserBase::decreaseRecursionDepth() void ParserBase::parserError(string const& _description) { - m_errorReporter.parserError(SourceLocation(position(), position(), sourceName()), _description); + m_errorReporter.parserError(SourceLocation(position(), endPosition(), sourceName()), _description); } void ParserBase::fatalParserError(string const& _description) { - m_errorReporter.fatalParserError(SourceLocation(position(), position(), sourceName()), _description); + m_errorReporter.fatalParserError(SourceLocation(position(), endPosition(), sourceName()), _description); } |