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

Side by Side Diff: packages/dart_style/test/whitespace/if.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 >>> indentation
3 if(true){return 42;}else{return 13;}
4 <<<
5 if (true) {
6 return 42;
7 } else {
8 return 13;
9 }
10 >>> nested
11 if (true){
12 if (true){
13 if (true){
14 return true;
15 } else{
16 return false;
17 }
18 }
19 }else{
20 return false;
21 }
22 <<<
23 if (true) {
24 if (true) {
25 if (true) {
26 return true;
27 } else {
28 return false;
29 }
30 }
31 } else {
32 return false;
33 }
34 >>> single-expression then body
35 if(true)print("true!");
36 <<<
37 if (true) print("true!");
38 >>> block then body
39 if(true){print("true!");}
40 <<<
41 if (true) {
42 print("true!");
43 }
44 >>> single-expression else body
45 if(true)print(1);else print(0);
46 <<<
47 if (true) print(1);
48 else print(0);
49 >>> chained else if
50 if (0 == 0) {
51 zero = 0;
52 } else if (0 == 1) {
53 zero = 1;
54 } else if (0 == 2) {
55 zero = 2;
56 }
57 <<<
58 if (0 == 0) {
59 zero = 0;
60 } else if (0 == 1) {
61 zero = 1;
62 } else if (0 == 2) {
63 zero = 2;
64 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/whitespace/functions.unit ('k') | packages/dart_style/test/whitespace/metadata.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698