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

Side by Side Diff: packages/dart_style/test/whitespace/compilation_unit.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 >>> discard newlines before library
3
4
5 library a;
6 <<<
7 library a;
8 >>> discard newlines before first import
9
10
11 import 'a.dart';
12 <<<
13 import 'a.dart';
14 >>> discard newlines before first export
15
16
17 export 'a.dart';
18 <<<
19 export 'a.dart';
20 >>> discard newlines before first class
21
22
23 class A {}
24 <<<
25 class A {}
26 >>> discard newlines before first variable
27
28
29 var a = 1;
30 <<<
31 var a = 1;
32 >>> discard newlines before first function
33
34
35 foo() {}
36 <<<
37 foo() {}
38 >>> collapse extra newlines between declarations
39
40
41
42 class A {}
43
44
45
46 class B = Base with Mixin;
47
48
49
50 var c = 1;
51
52
53 d() {}
54
55
56 <<<
57 class A {}
58
59 class B = Base with Mixin;
60
61 var c = 1;
62
63 d() {}
64 >>> force two newlines between directives and declarations
65 library a; var b;
66 <<<
67 library a;
68
69 var b;
70 >>> dartbug.com/15912
71 abstract class A = B with C<E>;
72 <<<
73 abstract class A = B with C<E>;
74 >>> blank line between classes
75 class A {} class B {}
76 <<<
77 class A {}
78
79 class B {}
80 >>> blank line between variables and classes
81 var a = 1; class B{} var c = 3;
82 <<<
83 var a = 1;
84
85 class B {}
86
87 var c = 3;
88 >>> blank line between functions and classes
89 a() {} class B{} c() {}
90 <<<
91 a() {}
92
93 class B {}
94
95 c() {}
96 >>> require newline between non-class declarations
97 var a = 1; var b = 1; c() {} d() {} var e = 1;
98 <<<
99 var a = 1;
100 var b = 1;
101 c() {}
102 d() {}
103 var e = 1;
104 >>> require blank line after non-empty block-bodied members
105 var a = 1; b() {;} c() => null; get d {;} get e => null; set f(value) {;
106 } set g(value) => null; var h = 1;
107 <<<
108 var a = 1;
109 b() {
110 ;
111 }
112
113 c() => null;
114 get d {
115 ;
116 }
117
118 get e => null;
119 set f(value) {
120 ;
121 }
122
123 set g(value) => null;
124 var h = 1;
125 >>> no required blank line after empty block-bodied members
126 var a = 1; b() {} c() => null; get d {} get e => null; set f(value) {
127 } set g(value) => null; var h = 1;
128 <<<
129 var a = 1;
130 b() {}
131 c() => null;
132 get d {}
133 get e => null;
134 set f(value) {}
135 set g(value) => null;
136 var h = 1;
OLDNEW
« no previous file with comments | « packages/dart_style/test/whitespace/classes.unit ('k') | packages/dart_style/test/whitespace/constructors.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698