csharpier
csharpier copied to clipboard
Break long invocation chains if they have more than 4 (3?) invocations in them.
If we're breaking, we should do before the first invocation so the indentation is more consistent:
e.g.
Enumerable
.Range(...)
.Where(...);
Agreed, it uses this logic currently. <= 4 keeps on the same line, otherwise you get some weird spacing with the one version
one.Range______________________________________________()
.Where__________________________________________________();
this.Range______________________________________________()
.Where__________________________________________________();
Enumerable
.Range______________________________________________()
.Where__________________________________________________();
Currently it doesn't break a chain until it exceeds the max line length.
