mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Accessors for exceptions.
This commit is contained in:
@@ -54,7 +54,7 @@ void SyntaxTest::parseAndAnalyze()
|
||||
int locationStart = -1;
|
||||
int locationEnd = -1;
|
||||
|
||||
if (auto location = boost::get_error_info<errinfo_sourceLocation>(*error))
|
||||
if (SourceLocation const* location = error->sourceLocation())
|
||||
{
|
||||
locationStart = location->start;
|
||||
locationEnd = location->end;
|
||||
|
||||
Reference in New Issue
Block a user