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

Side by Side Diff: packages/dart_style/test/whitespace/classes.unit

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 class A {
4 var z;
5 inc(int x) => ++x;
6 foo(int x) {
7 if (x == 0) {
8 return true;
9 }}}
10 <<<
11 class A {
12 var z;
13 inc(int x) => ++x;
14 foo(int x) {
15 if (x == 0) {
16 return true;
17 }
18 }
19 }
20 >>> trailing space inside body
21 class A {
22 }
23 <<<
24 class A {}
25 >>> leading space before "class"
26 class A {
27 }
28 <<<
29 class A {}
30 >>>
31 class A { int meaningOfLife() => 42; }
32 <<<
33 class A {
34 int meaningOfLife() => 42;
35 }
36 >>>
37 class A {
38 }
39 <<<
40 class A {}
41 >>>
42 class A{var z;inc(int x) => ++x;}
43 <<<
44 class A {
45 var z;
46 inc(int x) => ++x;
47 }
48 >>> eats newlines
49 abstract
50
51 class
52
53
54 A{}
55 <<<
56 abstract class A {}
57 >>> native class
58 class A extends B
59 native
60 "Zapp" {
61 }
62 <<<
63 class A extends B native "Zapp" {}
64 >>> require blank line after non-empty block-bodied members
65 class Foo {
66 var a = 1; b() {;} c() => null; get d {;} get e => null; set f(value) {;
67 } set g(value) => null; var h = 1;}
68 <<<
69 class Foo {
70 var a = 1;
71 b() {
72 ;
73 }
74
75 c() => null;
76 get d {
77 ;
78 }
79
80 get e => null;
81 set f(value) {
82 ;
83 }
84
85 set g(value) => null;
86 var h = 1;
87 }
88 >>> no required blank line after empty block-bodied members
89 class Foo {
90 var a = 1; b() {} c() => null; get d {} get e => null; set f(value) {
91 } set g(value) => null; var h = 1;}
92 <<<
93 class Foo {
94 var a = 1;
95 b() {}
96 c() => null;
97 get d {}
98 get e => null;
99 set f(value) {}
100 set g(value) => null;
101 var h = 1;
102 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/whitespace/cascades.stmt ('k') | packages/dart_style/test/whitespace/compilation_unit.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698