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

Side by Side Diff: tests/language_strong/private3.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Dart test for testing access to private fields. 5 // Dart test for testing access to private fields.
6 6
7 part of PrivateOther; 7 part of PrivateOther;
8 8
9 class LibOther3 { 9 class LibOther3 {
10 static accessFieldA3(var a) => a.fieldA; 10 static accessFieldA3(var a) => a.fieldA;
11 static accessFieldB3(var b) => b._fieldB; 11 static accessFieldB3(var b) => b._fieldB;
12 static int c_field1b(c) => c._field1; 12 static int c_field1b(c) => c._field1;
13 static int c_field2b(c) => c._field2; 13 static int c_field2b(c) => c._field2;
14 } 14 }
15 15
16 class AImported extends AExposed { 16 class AImported extends AExposed {
17 AImported() : super(); 17 AImported() : super();
18 getFieldA() => fieldA; 18 getFieldA() => fieldA;
19 } 19 }
20 20
21 class C2 extends C1 { 21 class C2 extends C1 {
22 int _field1; 22 int _field1;
23 C2() : super(), _field1 = 99; 23 C2()
24 : super(),
25 _field1 = 99;
24 26
25 field1b() => _field1; 27 field1b() => _field1;
26 } 28 }
27 29
28 class C4 extends C3 { 30 class C4 extends C3 {
29 int _field2; 31 int _field2;
30 C4() : super(), _field2 = 1024; 32 C4()
33 : super(),
34 _field2 = 1024;
31 35
32 field2b() => _field2; 36 field2b() => _field2;
33 field1d() => _field1; 37 field1d() => _field1;
34 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698