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

Side by Side Diff: packages/dart_style/test/whitespace/constructors.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 >>> empty body
3 class A {
4 A();
5 }
6 <<<
7 class A {
8 A();
9 }
10 >>> redirecting factory constructor
11 class A {
12 const factory A() = B;
13 }
14 <<<
15 class A {
16 const factory A() = B;
17 }
18 >>> initializing formals
19 class A {
20 int _a;
21 A(this._a);
22 }
23 <<<
24 class A {
25 int _a;
26 A(this._a);
27 }
28 >>> constructor initialization list
29 class X {
30 var x, y;
31 X() : x = 1, y = 2;
32 }
33 <<<
34 class X {
35 var x, y;
36 X()
37 : x = 1,
38 y = 2;
39 }
40 >>> DO format constructor initialization lists with each field on its own line.
41 class MyClass {
42 MyClass() : first = "some value", second = "another",
43 third = "last";
44 }
45 <<<
46 class MyClass {
47 MyClass()
48 : first = "some value",
49 second = "another",
50 third = "last";
51 }
52 >>> DO format constructor initialization lists with each field on its own line.
53 class MyClass {
54 MyClass(first, second) : super(first, second);
55 MyClass(first, second) : this(first, second);
56 }
57 <<<
58 class MyClass {
59 MyClass(first, second)
60 : super(first, second);
61 MyClass(first, second)
62 : this(first, second);
63 }
64 >>> handle a comma after function typed initializing formals
65 class Foo {
66 Foo(this.bar(), baz);
67 }
68 <<<
69 class Foo {
70 Foo(this.bar(), baz);
71 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/whitespace/compilation_unit.unit ('k') | packages/dart_style/test/whitespace/directives.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698