mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #13244 from ethereum/remove-code-snippets-from-error-import-ast-mode
Removed wrong code snippets from error messages when in import-ast mode.
This commit is contained in:
commit
b6f11b3392
@ -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