Fix formatting of types
This commit is contained in:
parent
1ecb831476
commit
7fb5ca420d
|
@ -682,16 +682,11 @@ class Formatter(Sink)
|
||||||
|
|
||||||
void format(const Type type)
|
void format(const Type type)
|
||||||
{
|
{
|
||||||
bool first = true;
|
|
||||||
foreach (constructor; type.typeConstructors)
|
foreach (constructor; type.typeConstructors)
|
||||||
{
|
{
|
||||||
if (first)
|
|
||||||
sink.put(" ");
|
|
||||||
first = false;
|
|
||||||
sink.put(str(constructor));
|
sink.put(str(constructor));
|
||||||
}
|
|
||||||
if (type.typeConstructors.length > 0)
|
|
||||||
sink.put(" ");
|
sink.put(" ");
|
||||||
|
}
|
||||||
format(type.type2);
|
format(type.type2);
|
||||||
foreach (suffix; type.typeSuffixes)
|
foreach (suffix; type.typeSuffixes)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue