|
1 | 1 | class C {
|
2 | 2 | // ^ definition syntax 1.0.0 src/`accessors.ts`/C#
|
3 |
| -// documentation ```ts\nC\n``` |
| 3 | +// documentation ```ts\nclass C\n``` |
4 | 4 | _length: number = 0
|
5 | 5 | // ^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#_length.
|
6 |
| -// documentation ```ts\nnumber\n``` |
| 6 | +// documentation ```ts\n(property) _length: number\n``` |
7 | 7 | get length(): number {
|
8 | 8 | // ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<get>length`().
|
9 |
| -// documentation ```ts\nnumber\n``` |
| 9 | +// documentation ```ts\nget length: number\n``` |
10 | 10 | return this._length
|
11 | 11 | // ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#_length.
|
12 | 12 | }
|
13 | 13 | set length(value: number) {
|
14 | 14 | // ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<get>length`().
|
15 |
| -// documentation ```ts\nnumber\n``` |
| 15 | +// documentation ```ts\nget length: number\n``` |
16 | 16 | // ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<set>length`().(value)
|
17 |
| -// documentation ```ts\nnumber\n``` |
| 17 | +// documentation ```ts\n(parameter) value: number\n``` |
18 | 18 | this._length = value
|
19 | 19 | // ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#_length.
|
20 | 20 | // ^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#`<set>length`().(value)
|
21 | 21 | }
|
22 | 22 |
|
23 | 23 | _capacity: number = 0
|
24 | 24 | // ^^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#_capacity.
|
25 |
| -// documentation ```ts\nnumber\n``` |
| 25 | +// documentation ```ts\n(property) _capacity: number\n``` |
26 | 26 | get capacity(): number {
|
27 | 27 | // ^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<get>capacity`().
|
28 |
| -// documentation ```ts\nnumber\n``` |
| 28 | +// documentation ```ts\nget capacity: number\n``` |
29 | 29 | return this._capacity
|
30 | 30 | // ^^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#_capacity.
|
31 | 31 | }
|
32 | 32 | }
|
33 | 33 |
|
34 | 34 | export class D {
|
35 | 35 | // ^ definition syntax 1.0.0 src/`accessors.ts`/D#
|
36 |
| -// documentation ```ts\nD\n``` |
| 36 | +// documentation ```ts\nclass D\n``` |
37 | 37 | _length: number = 0
|
38 | 38 | // ^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#_length.
|
39 |
| -// documentation ```ts\nnumber\n``` |
| 39 | +// documentation ```ts\n(property) _length: number\n``` |
40 | 40 | public get length(): number {
|
41 | 41 | // ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>length`().
|
42 |
| -// documentation ```ts\nnumber\n``` |
| 42 | +// documentation ```ts\nget length: number\n``` |
43 | 43 | return this._length
|
44 | 44 | // ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_length.
|
45 | 45 | }
|
46 | 46 | public set length(value: number) {
|
47 | 47 | // ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>length`().
|
48 |
| -// documentation ```ts\nnumber\n``` |
| 48 | +// documentation ```ts\nget length: number\n``` |
49 | 49 | // ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<set>length`().(value)
|
50 |
| -// documentation ```ts\nnumber\n``` |
| 50 | +// documentation ```ts\n(parameter) value: number\n``` |
51 | 51 | this._length = value
|
52 | 52 | // ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_length.
|
53 | 53 | // ^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<set>length`().(value)
|
54 | 54 | }
|
55 | 55 |
|
56 | 56 | _capacity: number = 0
|
57 | 57 | // ^^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#_capacity.
|
58 |
| -// documentation ```ts\nnumber\n``` |
| 58 | +// documentation ```ts\n(property) _capacity: number\n``` |
59 | 59 | public get capacity(): number {
|
60 | 60 | // ^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>capacity`().
|
61 |
| -// documentation ```ts\nnumber\n``` |
| 61 | +// documentation ```ts\nget capacity: number\n``` |
62 | 62 | return this._capacity
|
63 | 63 | // ^^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_capacity.
|
64 | 64 | }
|
65 | 65 | private set capacity(value: number) {
|
66 | 66 | // ^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>capacity`().
|
67 |
| -// documentation ```ts\nnumber\n``` |
| 67 | +// documentation ```ts\nget capacity: number\n``` |
68 | 68 | // ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<set>capacity`().(value)
|
69 |
| -// documentation ```ts\nnumber\n``` |
| 69 | +// documentation ```ts\n(parameter) value: number\n``` |
70 | 70 | this._capacity = value
|
71 | 71 | // ^^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_capacity.
|
72 | 72 | // ^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<set>capacity`().(value)
|
73 | 73 | }
|
74 | 74 | public unsafeSetCapacity(value: number): void {
|
75 | 75 | // ^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#unsafeSetCapacity().
|
76 |
| -// documentation ```ts\n(value: number) => void\n``` |
| 76 | +// documentation ```ts\n(method) unsafeSetCapacity(value: number): void\n``` |
77 | 77 | // ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#unsafeSetCapacity().(value)
|
78 |
| -// documentation ```ts\nnumber\n``` |
| 78 | +// documentation ```ts\n(parameter) value: number\n``` |
79 | 79 | this.capacity = value
|
80 | 80 | // ^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<get>capacity`().
|
81 | 81 | // ^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<set>capacity`().
|
|
85 | 85 |
|
86 | 86 | function g(_: number): void {}
|
87 | 87 | // ^ definition syntax 1.0.0 src/`accessors.ts`/g().
|
88 |
| -// documentation ```ts\n(_: number) => void\n``` |
| 88 | +// documentation ```ts\nfunction g(_: number): void\n``` |
89 | 89 | // ^ definition syntax 1.0.0 src/`accessors.ts`/g().(_)
|
90 |
| -// documentation ```ts\nnumber\n``` |
| 90 | +// documentation ```ts\n(parameter) _: number\n``` |
91 | 91 |
|
92 | 92 | function f() {
|
93 | 93 | // ^ definition syntax 1.0.0 src/`accessors.ts`/f().
|
94 |
| -// documentation ```ts\n() => void\n``` |
| 94 | +// documentation ```ts\nfunction f(): void\n``` |
95 | 95 | const c = new C()
|
96 | 96 | // ^ definition local 2
|
97 |
| -// documentation ```ts\nC\n``` |
| 97 | +// documentation ```ts\nvar c: C\n``` |
98 | 98 | // ^ reference syntax 1.0.0 src/`accessors.ts`/C#
|
99 | 99 | c.length = 10
|
100 | 100 | // ^ reference local 2
|
|
117 | 117 |
|
118 | 118 | const d = new D()
|
119 | 119 | // ^ definition local 5
|
120 |
| -// documentation ```ts\nD\n``` |
| 120 | +// documentation ```ts\nvar d: D\n``` |
121 | 121 | // ^ reference syntax 1.0.0 src/`accessors.ts`/D#
|
122 | 122 | d.length = 0
|
123 | 123 | // ^ reference local 5
|
|
0 commit comments