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

Side by Side Diff: packages/dart_style/test/splitting/loops.stmt

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 >>> do not split before first clause
3 for (extremelyReallyQuiteVeryLongFirstClause; second; third) {}
4 <<<
5 for (extremelyReallyQuiteVeryLongFirstClause;
6 second;
7 third) {}
8 >>> split after first clause
9 for (veryLongFirstClause; veryLongSecondClause; third) {}
10 <<<
11 for (veryLongFirstClause;
12 veryLongSecondClause;
13 third) {}
14 >>> split after second clause
15 for (longFirstClause; longSecondClause; third) {}
16 <<<
17 for (longFirstClause;
18 longSecondClause;
19 third) {}
20 >>> unsplit multiple variable declarations
21 for (var a = 1, b = 2; 3; 4) {}
22 <<<
23 for (var a = 1, b = 2; 3; 4) {}
24 >>> split multiple variable declarations
25 for (var first = initializer, second = initializer; 1; 2) {}
26 <<<
27 for (var first = initializer,
28 second = initializer;
29 1;
30 2) {}
31 >>> unsplit updaters
32 for (foo; bar; a++, b++) {}
33 <<<
34 for (foo; bar; a++, b++) {}
35 >>> split between updaters splits everything
36 for (foo; bar; first = 1, second = 2, third = 3, fourth = 4) {}
37 <<<
38 for (foo;
39 bar;
40 first = 1,
41 second = 2,
42 third = 3,
43 fourth = 4) {}
44 >>> nest wrapped initializer
45 for (very + long + initialization + expression; a; b) {}
46 <<<
47 for (very +
48 long +
49 initialization +
50 expression;
51 a;
52 b) {}
53 >>> split in for-in loop
54 for (var identifier in iteratableExpression) {}
55 <<<
56 for (var identifier
57 in iteratableExpression) {}
58 >>> split in while condition
59 while (aLongConditionExpressionThatWraps) {
60 ;
61 }
62 <<<
63 while (
64 aLongConditionExpressionThatWraps) {
65 ;
66 }
67 >>> don't force variables to split if clauses do
68 for (var a = 1, b = 2; longCondition(expression); a += b) {
69 ;
70 }
71 <<<
72 for (var a = 1, b = 2;
73 longCondition(expression);
74 a += b) {
75 ;
76 }
77 >>> don't force updates to split if clauses do
78 for (var a = 0; longCondition(expression); a += 1, b += 1) {
79 ;
80 }
81 <<<
82 for (var a = 0;
83 longCondition(expression);
84 a += 1, b += 1) {
85 ;
86 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/splitting/lists.stmt ('k') | packages/dart_style/test/splitting/map_arguments.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698