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

Side by Side Diff: pkg/analyzer/test/services/data/cu_tests.data

Issue 1001403002: Remove the old formatter from analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 >>>
2 class
3 A
4 {
5 }
6 <<<
7 class A {
8 }
9 >>> dartbug.com/15876
10 // fisk
11 import "dart:typed_data";
12
13 main() {
14 ByteData byteData = new ByteData(1);
15 print(byteData is ByteData);
16 print(byteData.elementSizeInBytes);
17 }
18 <<<
19 // fisk
20 import "dart:typed_data";
21
22 main() {
23 ByteData byteData = new ByteData(1);
24 print(byteData is ByteData);
25 print(byteData.elementSizeInBytes);
26 }
27 >>>
28 /**
29 * Y.
30 */
31 abstract class Y = Foo with Bar;
32 <<<
33 /**
34 * Y.
35 */
36 abstract class Y = Foo with Bar;
37 >>>
38 external void printToConsole(String line);
39 <<<
40 external void printToConsole(String line);
41 >>>
42 void set foo(int bar) {
43 }
44
45 int get baz => null;
46 <<<
47 void set foo(int bar) {
48 }
49
50 int get baz => null;
51 >>>
52 @deprecated
53 library foo;
54
55 @deprecated
56 import 'dart:io';
57
58 @deprecated
59 export 'dart:io';
60
61 class NoInline {
62 const NoInline();
63 }
64
65 @NoInline()
66 int foo(@NoInline() bar) => bar + 42;
67
68 class Z<@NoInline() Y> {
69
70 }
71
72 @NoInline()
73 typedef void X(y);
74
75 @NoInline()
76 class Y = X with Z;
77
78 @NoInline()
79 class X {
80
81 @NoInline()
82 var _x;
83
84 @NoInline()
85 X.y() {
86 @NoInline()
87 const y = null;
88 }
89
90 @NoInline()
91 factory X(@NoInline() x) => null;
92
93 @NoInline()
94 int x() => null;
95 }
96 <<<
97 @deprecated
98 library foo;
99
100 @deprecated
101 import 'dart:io';
102
103 @deprecated
104 export 'dart:io';
105
106 class NoInline {
107 const NoInline();
108 }
109
110 @NoInline()
111 int foo(@NoInline() bar) => bar + 42;
112
113 class Z<@NoInline() Y> {
114
115 }
116
117 @NoInline()
118 typedef void X(y);
119
120 @NoInline()
121 class Y = X with Z;
122
123 @NoInline()
124 class X {
125
126 @NoInline()
127 var _x;
128
129 @NoInline()
130 X.y() {
131 @NoInline()
132 const y = null;
133 }
134
135 @NoInline()
136 factory X(@NoInline() x) => null;
137
138 @NoInline()
139 int x() => null;
140 }
141 >>>
142 var x = #foo;
143 var y=#foo.bar.baz;
144 <<<
145 var x = #foo;
146 var y = #foo.bar.baz;
147 >>>
148 class Zounds extends Object native "Zapp" {
149 }
150 <<<
151 class Zounds extends Object native "Zapp" {
152 }
153 >>>
154 @DomName('DatabaseCallback')
155 @Experimental() // deprecated
156 typedef void DatabaseCallback(database);
157 <<<
158 @DomName('DatabaseCallback')
159 @Experimental() // deprecated
160 typedef void DatabaseCallback(database);
161 >>> dartbug.com/16366
162 import 'package:sdasdsasadasd/ass/sadasdas/sadasdsad_asdasd_asdsada_adsasdasdsa. dart';
163 <<<
164 import 'package:sdasdsasadasd/ass/sadasdas/sadasdsad_asdasd_asdsada_adsasdasdsa. dart';
165 >>>
166 import 'package:sdasdsasadasd/ass/sadasdas/sadasdsad_asdasd_asdsada_adsasdasdsa. dart' as sass;
167 <<<
168 import 'package:sdasdsasadasd/ass/sadasdas/sadasdsad_asdasd_asdsada_adsasdasdsa. dart'
169 as sass;
170 >>> dartbug.com/15912
171 abstract class ListBase<E> = Object with ListMixin<E>;
172 <<<
173 abstract class ListBase<E> = Object with ListMixin<E>;
174 >>> dartbug.com/15914
175 Object get _globalState => null;
176
177 set _globalState(Object val) {
178 }
179
180 void setX(x) {
181 }
182 <<<
183 Object get _globalState => null;
184
185 set _globalState(Object val) {
186 }
187
188 void setX(x) {
189 }
190 >>> dartbug.com/16405
191 class ContactImpulse {
192 List<double> normalImpulses = new List<double>(Settings.MAX_MANIFOLD_POINTS);
193 List<double> tangentImpulses = new List<double>(Settings.MAX_MANIFOLD_POINTS);
194
195 ContactImpulse();
196 }
197 <<<
198 class ContactImpulse {
199 List<double> normalImpulses = new List<double>(Settings.MAX_MANIFOLD_POINTS);
200 List<double> tangentImpulses = new List<double>(Settings.MAX_MANIFOLD_POINTS);
201
202 ContactImpulse();
203 }
204 >>> Empty class bodies may be on one line (or more)
205 class A extends B { }
206 <<<
207 class A extends B {}
208 >>>
209 class A extends B {
210
211 }
212 <<<
213 class A extends B {
214
215 }
216 >>> Single initializers can be on one line
217 class Foo extends Bar {
218 final int b;
219 Foo(int a, this.b) : super(a);
220 }
221 <<<
222 class Foo extends Bar {
223 final int b;
224 Foo(int a, this.b) : super(a);
225 }
226 >>> (or not)
227 class Foo extends Bar {
228 final int b;
229 Foo(int a, this.b)
230 : super(a);
231 }
232 <<<
233 class Foo extends Bar {
234 final int b;
235 Foo(int a, this.b)
236 : super(a);
237 }
238 >>> Multiple initializers are one per line
239 class Foo extends Bar {
240 final int b;
241 Foo(int a, int b) : super(a), this.b = b == null ? 0 : b;
242 }
243 <<<
244 class Foo extends Bar {
245 final int b;
246 Foo(int a, int b)
247 : super(a),
248 this.b = b == null ? 0 : b;
249 }
250 >>> dartbug.com/17837
251 @meta class Foo {
252 @meta String foo;
253 @meta int bar() => 42;
254 }
255 @meta
256 class Bar {
257 @meta
258 String foo;
259 @meta
260 int bar() => 42;
261 }
262 <<<
263 @meta class Foo {
264 @meta String foo;
265 @meta int bar() => 42;
266 }
267 @meta
268 class Bar {
269 @meta
270 String foo;
271 @meta
272 int bar() => 42;
273 }
274 >>>
275 import 'a.dart' deferred as a;
276 <<<
277 import 'a.dart' deferred as a;
278 >>> Long parameters list, place the opening curly brace ({) on the same line
279 class Foo {
280 method(int a012345678901234567890123456789, int b012345678901234567890123456)
281 {
282 print('42');
283 }
284 }
285 <<<
286 class Foo {
287 method(int a012345678901234567890123456789,
288 int b012345678901234567890123456) {
289 print('42');
290 }
291 }
292 >>> Long parameters list, this.field
293 class A {
294 int a0123456789012345678901234;
295 int b0123456789012345678901234;
296 int c0123456789012345678901234;
297 int d0123456789012345678901234;
298 A(this.a0123456789012345678901234, this.b0123456789012345678901234, this.c0123 456789012345678901234,
299 this.d0123456789012345678901234);
300 }
301 <<<
302 class A {
303 int a0123456789012345678901234;
304 int b0123456789012345678901234;
305 int c0123456789012345678901234;
306 int d0123456789012345678901234;
307 A(this.a0123456789012345678901234, this.b0123456789012345678901234,
308 this.c0123456789012345678901234, this.d0123456789012345678901234);
309 }
310 >>>
311 enum Foo { BAR, BAZ }
312 <<<
313 enum Foo {
314 BAR, BAZ
315 }
316 >>>
317 get x sync* {}
318 <<<
319 get x sync* {}
320 >>>
321 get x async* {}
322 <<<
323 get x async* {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698