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

Side by Side Diff: test/whitespace/metadata.unit

Issue 2298993002: Handle metadata annotations in parameter lists with trailing commas. (Closed)
Patch Set: Created 4 years, 3 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/regression/0500/0520.unit ('k') | no next file » | 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 >>> force newline before directives 2 >>> force newline before directives
3 @deprecated library foo; 3 @deprecated library foo;
4 4
5 @deprecated import 'dart:io'; 5 @deprecated import 'dart:io';
6 6
7 @deprecated export 'dart:io'; 7 @deprecated export 'dart:io';
8 <<< 8 <<<
9 @deprecated 9 @deprecated
10 library foo; 10 library foo;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 @foo @bar int fn(@foo param)) {} 202 @foo @bar int fn(@foo param)) {}
203 withoutReturnType( 203 withoutReturnType(
204 @foo @bar fn(@foo param)) {} 204 @foo @bar fn(@foo param)) {}
205 >>> metadata on default formal parameter 205 >>> metadata on default formal parameter
206 positional([@foo bar]) {} 206 positional([@foo bar]) {}
207 named({@foo bar}) {} 207 named({@foo bar}) {}
208 <<< 208 <<<
209 positional([@foo bar]) {} 209 positional([@foo bar]) {}
210 named({@foo bar}) {} 210 named({@foo bar}) {}
211 >>> split between metadata and parameter indents 211 >>> split between metadata and parameter indents
212 function(@VeryLongMetadataAnnotation longParameter) {} 212 function(@Annotation @VeryLongMetadataAnnotation longParameter) {}
213 <<< 213 <<<
214 function( 214 function(
215 @Annotation
215 @VeryLongMetadataAnnotation 216 @VeryLongMetadataAnnotation
216 longParameter) {} 217 longParameter) {}
218 >>> unsplit with trailing commas
219 function(@Annotation longParameter,@Annotation @Other longParameter2,) {}
220 <<<
221 function(
222 @Annotation longParameter,
223 @Annotation @Other longParameter2,
224 ) {}
225 >>> split with trailing commas
226 function(@Annotation longParameter,@Annotation @Other @Third longParameter2,) {}
227 <<<
228 function(
229 @Annotation longParameter,
230 @Annotation
231 @Other
232 @Third
233 longParameter2,
234 ) {}
OLDNEW
« no previous file with comments | « test/regression/0500/0520.unit ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698