Remove "garbage" code snippet from error message when in import-ast mode.

This commit is contained in:
Matheus Aguiar
2022-07-06 13:43:29 -03:00
parent b2ac0dada4
commit a73bf9136c
+3
View File
@@ -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);