Closed lucaswerkmeister closed 10 years ago
Damn, turns out we can’t unshare FormattingWriter
because LineBreakStrategy
depends on its internals.
Apart from some auxiliary functions in run.ceylon
, the only thing we can unshare is FormattingVisitor
. And somehow, it feels very wrong to me to have FormattingVisitor
unshared but FormattingWriter
shared.
The tests would be in a different source folder, but still in the same module, as suggested by Tom Bentley here. This allows you to use
ceylon test ceylon.formatter
instead ofceylon test test.ceylon.formatter
, and more importantly, it allows us to makeFormattingWriter
and a bunch of other stuff unshared
.Depends on ceylon/ceylon-compiler#1572.