aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-20 00:34:07 +0800
committerGitHub <noreply@github.com>2018-02-20 00:34:07 +0800
commitabc23ac6086fe724b82eb8ca7f9805cf7ff5ba10 (patch)
tree31ebad3bbafe2fca6292989e7521ab0e8146f9d3 /test/libjulia
parenta938e39a9d1784a91984c6959300f64734172864 (diff)
parent305d5f70c25d63d602477c6b576b2f62d388c032 (diff)
downloaddexon-solidity-abc23ac6086fe724b82eb8ca7f9805cf7ff5ba10.tar.gz
dexon-solidity-abc23ac6086fe724b82eb8ca7f9805cf7ff5ba10.tar.zst
dexon-solidity-abc23ac6086fe724b82eb8ca7f9805cf7ff5ba10.zip
Merge pull request #3135 from federicobond/formatter-instance
Convert static SourceReferenceFormatter functions to member ones
Diffstat (limited to 'test/libjulia')
-rw-r--r--test/libjulia/Common.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libjulia/Common.cpp b/test/libjulia/Common.cpp
index e1ab8215..00336977 100644
--- a/test/libjulia/Common.cpp
+++ b/test/libjulia/Common.cpp
@@ -40,12 +40,12 @@ using namespace dev::solidity;
void dev::julia::test::printErrors(ErrorList const& _errors, Scanner const& _scanner)
{
+ SourceReferenceFormatter formatter(cout, [&](std::string const&) -> Scanner const& { return _scanner; });
+
for (auto const& error: _errors)
- SourceReferenceFormatter::printExceptionInformation(
- cout,
+ formatter.printExceptionInformation(
*error,
- (error->type() == Error::Type::Warning) ? "Warning" : "Error",
- [&](std::string const&) -> Scanner const& { return _scanner; }
+ (error->type() == Error::Type::Warning) ? "Warning" : "Error"
);
}