OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 // test w/ `dart test/util/solo_test.dart public_member_api_docs` | 5 // test w/ `dart test/util/solo_test.dart public_member_api_docs` |
6 | 6 |
7 abstract class A //LINT | 7 abstract class A //LINT |
8 { | 8 { |
| 9 |
| 10 /// Zapp. |
| 11 int get zapp => 0; |
| 12 set zapp(int z) //OK |
| 13 { } |
| 14 |
| 15 int get zapp2 => 0; //LINT |
| 16 /// Zapp. |
| 17 set zapp2(int z) { } |
| 18 |
9 static const Z = 1; //LINT | 19 static const Z = 1; //LINT |
10 static int _Z = 13; //OK | 20 static int _Z = 13; //OK |
11 | 21 |
12 A(); //LINT | 22 A(); //LINT |
13 A.named(); //LINT | 23 A.named(); //LINT |
14 A._(); //OK | 24 A._(); //OK |
15 int x; //LINT | 25 int x; //LINT |
16 int _y; //OK | 26 int _y; //OK |
17 int z, //LINT | 27 int z, //LINT |
18 _z; //OK | 28 _z; //OK |
19 /// Doc. | 29 /// Doc. |
20 a() { | 30 a() { |
21 inner() => null; //OK | 31 inner() => null; //OK |
22 } | 32 } |
23 | 33 |
24 // No doc. | 34 // No doc. |
25 b(); //LINT | 35 b(); //LINT |
26 | 36 |
27 c(); //LINT | 37 c(); //LINT |
28 } | 38 } |
29 | 39 |
| 40 /// Zapp. |
| 41 int get zapp => 0; |
| 42 set zapp(int z) //OK |
| 43 { } |
| 44 |
| 45 int get zapp2 => 0; //LINT |
| 46 /// Zapp. |
| 47 set zapp2(int z) { } |
| 48 |
| 49 |
30 main() //OK | 50 main() //OK |
31 { } | 51 { } |
32 | 52 |
33 typedef bool t(Object o); //LINT | 53 typedef bool t(Object o); //LINT |
34 | 54 |
35 abstract class _B { | 55 abstract class _B { |
36 a(); //OK | 56 a(); //OK |
37 } | 57 } |
38 | 58 |
39 enum E //LINT | 59 enum E //LINT |
(...skipping 21 matching lines...) Expand all Loading... |
61 | 81 |
62 /// Bar. | 82 /// Bar. |
63 bar() => null; //OK | 83 bar() => null; //OK |
64 | 84 |
65 int g; //LINT | 85 int g; //LINT |
66 | 86 |
67 int _h; //OK | 87 int _h; //OK |
68 | 88 |
69 int gg, //LINT | 89 int gg, //LINT |
70 _gg; //OK | 90 _gg; //OK |
| 91 |
| 92 /// ZZ. |
| 93 class ZZ { |
| 94 /// Z. |
| 95 int get z => 0; |
| 96 } |
| 97 |
| 98 /// ZZZ. |
| 99 class ZZZ extends ZZ { |
| 100 set z(int z) //OK |
| 101 { } |
| 102 } |
OLD | NEW |