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

Side by Side Diff: test/comments/functions.unit

Issue 2196863002: Format parameter lists with trailing commas like argument lists. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: 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
OLDNEW
1 40 columns | 1 40 columns |
2 >>> indented line comment (dartbug.com/16383) 2 >>> indented line comment (dartbug.com/16383)
3 main() { 3 main() {
4 // comment 4 // comment
5 } 5 }
6 <<< 6 <<<
7 main() { 7 main() {
8 // comment 8 // comment
9 } 9 }
10 >>> line comment on opening line 10 >>> line comment on opening line
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 >>> remove blank line before beginning of body 119 >>> remove blank line before beginning of body
120 main() { 120 main() {
121 121
122 122
123 123
124 // comment 124 // comment
125 } 125 }
126 <<< 126 <<<
127 main() { 127 main() {
128 // comment 128 // comment
129 }
130 >>> comment before "]" with trailing comma
131 function([parameter,/* c */]) {;}
132 <<<
133 function([
134 parameter,
135 /* c */
136 ]) {
137 ;
138 }
139 >>> comment before ")" with trailing comma
140 function([parameter,]/* c */) {;}
141 <<<
142 function([
143 parameter,
144 ] /* c */) {
145 ;
129 } 146 }
OLDNEW
« lib/src/source_visitor.dart ('K') | « pubspec.yaml ('k') | test/whitespace/functions.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698