| 40 columns | |
| >>> do not split after "(" |
| doSomethingWithFn((argument) => functionBodyTooLong()); |
| <<< |
| doSomethingWithFn((argument) => |
| functionBodyTooLong()); |
| >>> newline before fn expression should not force => to split |
| { |
| () => one; |
| () => two; |
| } |
| <<< |
| { |
| () => one; |
| () => two; |
| } |
| >>> indent entire block body |
| SomeLongFunctionName( |
| (longParameterName______) => |
| <LongTypeArgument>[ |
| longListElement, |
| ], |
| ); |
| <<< |
| SomeLongFunctionName( |
| (longParameterName______) => |
| <LongTypeArgument>[ |
| longListElement, |
| ], |
| ); |
| >>> |
| SomeLongFunctionName( |
| (longParameterName______) => |
| switch (value) { |
| constant => body, |
| }, |
| ); |
| <<< |
| SomeLongFunctionName( |
| (longParameterName______) => |
| switch (value) { |
| constant => body, |
| }, |
| ); |