StringFormatter
dotty.tools.dotc.printing.Formatting.StringFormatter
General purpose string formatter, with the following features:
- Invokes the
show
extension method on the interpolated arguments. - Sequences can be formatted using the desired separator between two
%
signs, egi"myList = (${myList}%, %)"
- Safe handling of multi-line margins. Left margins are stripped on the parts of the string context before inserting the arguments. That way, we guard against accidentally treating an interpolated value as a margin.
Attributes
- Graph
-
- Supertypes
Members list
In this article