mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
liblangutil: refactor SourceReferenceFormatter, splitting out retrieval and making use of new SourceLocation's CharStream knowledge
This commit is contained in:
committed by
chriseth
parent
6efe2a5266
commit
073b03d90c
@@ -386,8 +386,7 @@ void CompilerContext::appendInlineAssembly(
|
||||
for (auto const& error: errorReporter.errors())
|
||||
message += SourceReferenceFormatter::formatExceptionInformation(
|
||||
*error,
|
||||
(error->type() == Error::Type::Warning) ? "Warning" : "Error",
|
||||
[&](string const&) -> Scanner const& { return *scanner; }
|
||||
(error->type() == Error::Type::Warning) ? "Warning" : "Error"
|
||||
);
|
||||
message += "-------------------------------------------\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user