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

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

Issue 824763004: Allow splitting in clauses in C-style for loop. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 12 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/100.stmt ('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
(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) {}
37 <<<
38 for (foo;
39 bar;
40 first = 1,
41 second = 2,
42 third = 3) {}
43 >>> nest wrapped initializer
44 for (very + long + initialization + expression; a; b) {}
45 <<<
46 for (very +
47 long +
48 initialization +
49 expression;
50 a;
51 b) {}
OLDNEW
« no previous file with comments | « test/regression/100.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698