diff options
author | chriseth <chris@ethereum.org> | 2018-12-06 21:01:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 21:01:39 +0800 |
commit | 0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d (patch) | |
tree | a247b6ea5b9b305e60d9e4d403e805335415ba6f /solc/CommandLineInterface.cpp | |
parent | 1643d63e3af1b0e3aabac2f2ded3619505d0fa8c (diff) | |
parent | 073b03d90c8f0648ba135f0b30d8e72fd871478f (diff) | |
download | dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.gz dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.bz2 dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.lz dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.xz dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.zst dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.zip |
Merge pull request #5554 from ethereum/cp-SourceReferenceFormatter-refactor
[2/3] Refactor SourceReferenceFormatter (split-out data extraction & make use of new SourceLocation knowledge)
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r-- | solc/CommandLineInterface.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 38e778c6..bda1b78a 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -858,8 +858,7 @@ bool CommandLineInterface::processInput() m_compiler.reset(new CompilerStack(fileReader)); - auto scannerFromSourceName = [&](string const& _sourceName) -> Scanner const& { return m_compiler->scanner(_sourceName); }; - SourceReferenceFormatter formatter(serr(false), scannerFromSourceName); + SourceReferenceFormatter formatter(serr(false)); try { @@ -1222,8 +1221,7 @@ bool CommandLineInterface::assemble( for (auto const& sourceAndStack: assemblyStacks) { auto const& stack = sourceAndStack.second; - auto scannerFromSourceName = [&](string const&) -> Scanner const& { return stack.scanner(); }; - SourceReferenceFormatter formatter(serr(false), scannerFromSourceName); + SourceReferenceFormatter formatter(serr(false)); for (auto const& error: stack.errors()) { |