This repository was archived by the owner on Nov 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed
test/rules/experiments/nonfunction-type-aliases/rules Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
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.
4
+
5
+ // test w/ `pub run test -N slash_for_doc_comments`
6
+
7
+ /** lib */ //LINT
8
+ library test.rules.slash_for_doc_comments;
9
+
10
+ /** My class */ //LINT
11
+ class A {}
12
+
13
+ /// OK
14
+ class B {
15
+
16
+ /** B */ //LINT
17
+ B ();
18
+
19
+ /** x */ //LINT
20
+ var x;
21
+
22
+ /** y */ //LINT
23
+ y () {
24
+ /** l */ //LINT
25
+ void l () {}
26
+ }
27
+ }
28
+
29
+ /** G */ //LINT
30
+ enum G {
31
+ /** A */ //LINT
32
+ A ,
33
+ B
34
+ }
35
+
36
+ /** f */ //LINT
37
+ typedef bool F ();
38
+
39
+ /** f */ //LINT
40
+ typedef F2 = bool Function ();
41
+
42
+ /** z */ //LINT
43
+ z () => null ;
44
+
45
+ /* meh */ //OK
46
+ class C {}
47
+
48
+ /** D */ //LINT
49
+ var D = String ;
50
+
51
+ /** Z */ //LINT
52
+ class Z = B with C ;
53
+
54
+ /** M1 */ //LINT
55
+ mixin M1 {}
56
+
57
+ /* meh */ //OK
58
+ mixin M2 {}
59
+
60
+ /** Ext */ //LINT
61
+ extension Ext on Object {
62
+ /** e */ // LINT
63
+ void e () { }
64
+ }
65
+
66
+ /** Unnamed */ //LINT
67
+ extension on A { }
68
+
69
+ /** O */ //LINT
70
+ typedef O = Object ;
71
+
72
+ /** OM */ //LINT
73
+ class OM = Object with M ;
You can’t perform that action at this time.
0 commit comments