aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-05-09 19:02:20 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-05-09 20:08:22 +0800
commit02380113d417b298282c81bf35ddb596006ce77a (patch)
tree60400b00f1dda9d9ef23bea28ce8c238af68f372 /libsolidity/parsing
parent87826a7d87991f9c054d27def6fb9a79eb18e3ae (diff)
downloaddexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar
dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar.gz
dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar.bz2
dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar.lz
dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar.xz
dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.tar.zst
dexon-solidity-02380113d417b298282c81bf35ddb596006ce77a.zip
Use the entire token as source location for parser errors.
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r--libsolidity/parsing/ParserBase.cpp4
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);
}