mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove CharStream from SourceLocation.
This commit is contained in:
@@ -561,7 +561,7 @@ bool CommandLineInterface::compile()
|
||||
|
||||
m_compiler = make_unique<CompilerStack>(m_fileReader.reader());
|
||||
|
||||
SourceReferenceFormatter formatter(serr(false), coloredOutput(m_options), m_options.formatting.withErrorIds);
|
||||
SourceReferenceFormatter formatter(serr(false), *m_compiler, coloredOutput(m_options), m_options.formatting.withErrorIds);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -598,8 +598,7 @@ bool CommandLineInterface::compile()
|
||||
|
||||
if (!m_compiler->analyze())
|
||||
{
|
||||
for (auto const& error: m_compiler->errors())
|
||||
formatter.printErrorInformation(*error);
|
||||
formatter.printErrorInformation(m_compiler->errors());
|
||||
astAssert(false, "Analysis of the AST failed");
|
||||
}
|
||||
}
|
||||
@@ -974,7 +973,7 @@ bool CommandLineInterface::assemble(
|
||||
for (auto const& sourceAndStack: assemblyStacks)
|
||||
{
|
||||
auto const& stack = sourceAndStack.second;
|
||||
SourceReferenceFormatter formatter(serr(false), coloredOutput(m_options), m_options.formatting.withErrorIds);
|
||||
SourceReferenceFormatter formatter(serr(false), stack, coloredOutput(m_options), m_options.formatting.withErrorIds);
|
||||
|
||||
for (auto const& error: stack.errors())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user