Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: test/whitespace/expressions.stmt

Issue 2181743002: Always split collections and argument lists with trailing commas. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Revise. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/splitting/maps.stmt ('k') | tool/node_format_service.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 40 columns | 1 40 columns |
2 >>> arithmetic operators 2 >>> arithmetic operators
3 var a=1+2/(3*-b~/4); 3 var a=1+2/(3*-b~/4);
4 <<< 4 <<<
5 var a = 1 + 2 / (3 * -b ~/ 4); 5 var a = 1 + 2 / (3 * -b ~/ 4);
6 >>> conditional operator 6 >>> conditional operator
7 var c=!condition==a>b; 7 var c=!condition==a>b;
8 <<< 8 <<<
9 var c = !condition == a > b; 9 var c = !condition == a > b;
10 >>> 10 >>>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 receiver ?. method() ?. getter; 111 receiver ?. method() ?. getter;
112 <<< 112 <<<
113 receiver?.method()?.getter; 113 receiver?.method()?.getter;
114 >>> null coalescing self assignment 114 >>> null coalescing self assignment
115 variableName??=argument; 115 variableName??=argument;
116 <<< 116 <<<
117 variableName ??= argument; 117 variableName ??= argument;
118 >>> trailing comma in single argument list 118 >>> trailing comma in single argument list
119 function(argument , ); 119 function(argument , );
120 <<< 120 <<<
121 function(argument,); 121 function(
122 argument,
123 );
122 >>> trailing comma in argument list 124 >>> trailing comma in argument list
123 function(argument,argument , ); 125 function(argument,argument , );
124 <<< 126 <<<
125 function(argument, argument,); 127 function(
128 argument,
129 argument,
130 );
126 >>> trailing comma in named argument list 131 >>> trailing comma in named argument list
127 function(named: arg,another:arg, ); 132 function(named: arg,another:arg, );
128 <<< 133 <<<
129 function(named: arg, another: arg,); 134 function(
135 named: arg,
136 another: arg,
137 );
OLDNEW
« no previous file with comments | « test/splitting/maps.stmt ('k') | tool/node_format_service.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698