aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-09 21:06:30 +0800
committerGitHub <noreply@github.com>2018-05-09 21:06:30 +0800
commit2c3f57bec6eaa8d52a644f0b6abe7ab17b05a2ee (patch)
treebad4eb74882470a97ef7650504757d8ee771295e /libsolidity/parsing
parent6b0b676c32ae998e97d235ccfe7d1ebdbdb46ed8 (diff)
parent305fc0626bbab7ac7c4f4f9511e2059abd84c9de (diff)
downloaddexon-solidity-2c3f57bec6eaa8d52a644f0b6abe7ab17b05a2ee.tar.gz
dexon-solidity-2c3f57bec6eaa8d52a644f0b6abe7ab17b05a2ee.tar.zst
dexon-solidity-2c3f57bec6eaa8d52a644f0b6abe7ab17b05a2ee.zip
Merge pull request #4104 from ethereum/parserErrorSourceLocations
Proper source locations 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);
}