From 949b00ed591303c531ed8fa73087b710b7a554de Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 22 Feb 2016 02:13:41 +0100 Subject: Parsing for inline assembly. --- libsolidity/interface/SourceReferenceFormatter.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libsolidity/interface/SourceReferenceFormatter.cpp') diff --git a/libsolidity/interface/SourceReferenceFormatter.cpp b/libsolidity/interface/SourceReferenceFormatter.cpp index 169e5c18..65d7fbc8 100644 --- a/libsolidity/interface/SourceReferenceFormatter.cpp +++ b/libsolidity/interface/SourceReferenceFormatter.cpp @@ -21,7 +21,6 @@ */ #include -#include #include #include @@ -85,7 +84,7 @@ void SourceReferenceFormatter::printExceptionInformation( ostream& _stream, Exception const& _exception, string const& _name, - CompilerStack const& _compiler + function const& _scannerFromSourceName ) { SourceLocation const* location = boost::get_error_info(_exception); @@ -94,7 +93,7 @@ void SourceReferenceFormatter::printExceptionInformation( if (location) { - scannerPtr = &_compiler.scanner(*location->sourceName); + scannerPtr = &_scannerFromSourceName(*location->sourceName); printSourceName(_stream, *location, *scannerPtr); } @@ -104,7 +103,7 @@ void SourceReferenceFormatter::printExceptionInformation( if (location) { - scannerPtr = &_compiler.scanner(*location->sourceName); + scannerPtr = &_scannerFromSourceName(*location->sourceName); printSourceLocation(_stream, *location, *scannerPtr); } @@ -112,7 +111,7 @@ void SourceReferenceFormatter::printExceptionInformation( { for (auto info: secondarylocation->infos) { - scannerPtr = &_compiler.scanner(*info.second.sourceName); + scannerPtr = &_scannerFromSourceName(*info.second.sourceName); _stream << info.first << " "; printSourceName(_stream, info.second, *scannerPtr); _stream << endl; -- cgit v1.2.3