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

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

Issue 1475873002: More sophisticated handling of parameter metadata. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years 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
« lib/src/source_visitor.dart ('K') | « test/regression/0400/0444.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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 <<< 218 <<<
219 withReturnType( 219 withReturnType(
220 @foo @bar int fn(@foo param)) {} 220 @foo @bar int fn(@foo param)) {}
221 withoutReturnType( 221 withoutReturnType(
222 @foo @bar fn(@foo param)) {} 222 @foo @bar fn(@foo param)) {}
223 >>> metadata on default formal parameter 223 >>> metadata on default formal parameter
224 positional([@foo bar]) {} 224 positional([@foo bar]) {}
225 named({@foo bar}) {} 225 named({@foo bar}) {}
226 <<< 226 <<<
227 positional([@foo bar]) {} 227 positional([@foo bar]) {}
228 named({@foo bar}) {} 228 named({@foo bar}) {}
229 >>> split between metadata and parameter indents
230 function(@VeryLongMetadataAnnotation longParameter) {}
231 <<<
232 function(
233 @VeryLongMetadataAnnotation
234 longParameter) {}
OLDNEW
« lib/src/source_visitor.dart ('K') | « test/regression/0400/0444.unit ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698