mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11993 from ethereum/remove-trailing-whitespace-after-location-with-no-snippet
Don't include whitespace after `@src` tag if there's no snippet
This commit is contained in:
commit
2c3322cbf6
@ -293,7 +293,7 @@ string AsmPrinter::formatSourceLocation(
|
|||||||
":" +
|
":" +
|
||||||
to_string(_location.end);
|
to_string(_location.end);
|
||||||
|
|
||||||
return joinHumanReadable(vector<string>{sourceLocation, solidityCodeSnippet}, " ");
|
return sourceLocation + (solidityCodeSnippet.empty() ? "" : " ") + solidityCodeSnippet;
|
||||||
}
|
}
|
||||||
|
|
||||||
string AsmPrinter::formatDebugData(shared_ptr<DebugData const> const& _debugData, bool _statement)
|
string AsmPrinter::formatDebugData(shared_ptr<DebugData const> const& _debugData, bool _statement)
|
||||||
|
Loading…
Reference in New Issue
Block a user