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

Side by Side Diff: packages/dart_style/test/whitespace/for.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 place spaces around in, and after each ; in a loop.
3 for (var i = 0;i<100;i++) {
4 print(i);
5 }
6 <<<
7 for (var i = 0; i < 100; i++) {
8 print(i);
9 }
10 >>> empty clauses
11 for(;;);
12 <<<
13 for (;;);
14 >>> empty initializer clause
15 for ( ; foo; bar) {}
16 <<<
17 for (; foo; bar) {}
18 >>> whitespace
19 for (var file in files ) {
20 print(file);
21 }
22 <<<
23 for (var file in files) {
24 print(file);
25 }
26 >>> for-in with type
27 for (Foo foo in bar.foos) {
28 print(foo);
29 }
30 <<<
31 for (Foo foo in bar.foos) {
32 print(foo);
33 }
34 >>> for-in with final and type
35 for (final Foo foo in bar.foos) {
36 print(foo);
37 }
38 <<<
39 for (final Foo foo in bar.foos) {
40 print(foo);
41 }
42 >>> for-in with just final
43 for (final foo in bar.foos) {
44 print(foo);
45 }
46 <<<
47 for (final foo in bar.foos) {
48 print(foo);
49 }
50 >>>
51 for (var a=0; a<100; ++a) { print(a); }
52 <<<
53 for (var a = 0; a < 100; ++a) {
54 print(a);
55 }
56 >>>
57 for(
58 var a=0;
59 a<100;
60 ++a)
61 {
62 print(a);
63 }
64 <<<
65 for (var a = 0; a < 100; ++a) {
66 print(a);
67 }
68 >>>
69 for (x in xs) {
70 print(x);
71 }
72 <<<
73 for (x in xs) {
74 print(x);
75 }
76 >>> async
77 foo() async {
78 await for(x in y) {
79 }
80 }
81 <<<
82 foo() async {
83 await for (x in y) {}
84 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/whitespace/expressions.stmt ('k') | packages/dart_style/test/whitespace/functions.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698