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

Side by Side Diff: packages/dart_style/test/splitting/generic_method_parameters.unit

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 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
(Empty)
1 40 columns |
2 >>> all fit on one line
3 foo<A,B,C,D>() {}
4 <<<
5 foo<A, B, C, D>() {}
6 >>> prefer to split between params even when they all fit on next line
7 longFunctionName<First, Second, Third>() {}
8 <<<
9 longFunctionName<First, Second,
10 Third>() {}
11 >>> split before first if needed
12 longFunctionName<FirstTypeParameterIsLong, S>() {}
13 <<<
14 longFunctionName<
15 FirstTypeParameterIsLong, S>() {}
16 >>> split in middle if fit in two lines
17 longFunctionName<First, Second, Third, Fourth, Fifth, Sixth>() {}
18 <<<
19 longFunctionName<First, Second, Third,
20 Fourth, Fifth, Sixth>() {}
21 >>> split one per line if they don't fit in two lines
22 veryLongFunctionName<First, Second, Third, Fourth, Fifth, Sixth, Seventh>() {}
23 <<<
24 veryLongFunctionName<
25 First,
26 Second,
27 Third,
28 Fourth,
29 Fifth,
30 Sixth,
31 Seventh>() {}
32 >>> split both type and value arguments
33 lengthyMethodName<First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>(f irst, second, third, fourth, fifth, sixth, seventh, eighth) {}
34 <<<
35 lengthyMethodName<
36 First,
37 Second,
38 Third,
39 Fourth,
40 Fifth,
41 Sixth,
42 Seventh,
43 Eighth>(
44 first,
45 second,
46 third,
47 fourth,
48 fifth,
49 sixth,
50 seventh,
51 eighth) {}
52 >>> type parameters and => body
53 longFunctionName<LongTypeParameterT, LongTypeParameterS>() => body;
54 <<<
55 longFunctionName<
56 LongTypeParameterT,
57 LongTypeParameterS>() =>
58 body;
59 >>> type parameters, value parameters, and => body
60 longFunctionName<LongTypeParameterT, LongTypeParameterS>(longParameter1, longPar ameter2) => body;
61 <<<
62 longFunctionName<
63 LongTypeParameterT,
64 LongTypeParameterS>(
65 longParameter1,
66 longParameter2) =>
67 body;
OLDNEW
« no previous file with comments | « packages/dart_style/test/splitting/generic_method_arguments.stmt ('k') | packages/dart_style/test/splitting/imports.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698