Open lucaswerkmeister opened 10 years ago
For AST elements (i. e. everything except comments), we could probably get this by implementing “tab stops” in the FormattingWriter
and using them in the FormattingVisitor
.
Another use case (@luolong here):
value sumOfStuff = calculateSomeStuff(1)
+ calculateSomeOtherStuff(2);
and
value sumOfStuff = calculateSomeStuff(1) +
calculateSomeOtherStuff(2);
Another use case (from #105):
shared actual Boolean equals(Object that)
=> if (is This that)
then this.thing == that.thing
else false;
Another one, from https://github.com/ceylon/ceylon.formatter/issues/105#issuecomment-169006171:
void method(A a,
B b){}
There should be a way to allow alignment of code. For example: