| 40 columns | |
| >>> Unsplit empty argument list with inline block comment. |
| function ( /* comment */ ) ; |
| <<< |
| function(/* comment */); |
| >>> Split empty argument list with inline block comment. |
| veryLongFunction ( /* very long comment */ ) ; |
| <<< |
| veryLongFunction( |
| /* very long comment */ |
| ); |
| >>> Split empty argument list with line comment. |
| function ( // comment |
| ) ; |
| <<< |
| function( |
| // comment |
| ); |
| >>> Split empty argument list with block comment. |
| function ( /* multi |
| line |
| comment */) ; |
| <<< |
| function( |
| /* multi |
| line |
| comment */ |
| ); |
| >>> Remove extra leading and all trailing empty lines. |
| function(argument, |
| |
| |
| // comment |
| |
| |
| another, |
| ); |
| <<< |
| function( |
| argument, |
| |
| // comment |
| another, |
| ); |
| >>> Preserve one blank line between line comments. |
| function(argument, |
| // one |
| // two |
| |
| // three |
| |
| |
| // four |
| |
| |
| |
| // five |
| another, |
| ); |
| <<< |
| function( |
| argument, |
| // one |
| // two |
| |
| // three |
| |
| // four |
| |
| // five |
| another, |
| ); |
| >>> Don't preserve newlines in argument lists with line comment. |
| ### For collection literals, a line comment is a signal to preserve the user's |
| ### original newlines. This test is just to validate that we *don't* do that |
| ### for argument lists. |
| function(// yeah |
| first, second, third, |
| fourth, fifth, |
| sixth); |
| <<< |
| function( |
| // yeah |
| first, |
| second, |
| third, |
| fourth, |
| fifth, |
| sixth, |
| ); |