mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove "garbage" code snippet from error message when in import-ast mode.
This commit is contained in:
parent
b2ac0dada4
commit
a73bf9136c
@ -124,6 +124,9 @@ void SourceReferenceFormatter::printSourceLocation(SourceReference const& _ref)
|
||||
|
||||
string_view text = _ref.text;
|
||||
|
||||
if (m_charStreamProvider.charStream(_ref.sourceName).isImportedFromAST())
|
||||
return;
|
||||
|
||||
if (!_ref.multiline)
|
||||
{
|
||||
size_t const locationLength = static_cast<size_t>(_ref.endColumn - _ref.startColumn);
|
||||
|
Loading…
Reference in New Issue
Block a user