Skip to content

Commit d2f5cd2

Browse files
Updated specs
1 parent 8ab18b7 commit d2f5cd2

File tree

5 files changed

+305
-121
lines changed

5 files changed

+305
-121
lines changed

test/converter/basic/specs.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@
5353
"flags": {},
5454
"comment": {
5555
"shortText": "Constructor short text."
56+
},
57+
"type": {
58+
"type": "reference",
59+
"name": "TestClass",
60+
"symbolID": -1
5661
}
5762
}
5863
]
@@ -68,6 +73,11 @@
6873
},
6974
"comment": {
7075
"shortText": "privateProperty short text."
76+
},
77+
"type": {
78+
"type": "instrinct",
79+
"isArray": true,
80+
"name": "number"
7181
}
7282
},
7383
{
@@ -81,6 +91,10 @@
8191
},
8292
"comment": {
8393
"shortText": "publicProperty short text."
94+
},
95+
"type": {
96+
"type": "instrinct",
97+
"name": "string"
8498
}
8599
},
86100
{
@@ -94,6 +108,11 @@
94108
},
95109
"comment": {
96110
"shortText": "privateProperty short text."
111+
},
112+
"type": {
113+
"type": "reference",
114+
"name": "TestClass",
115+
"symbolID": 14743
97116
}
98117
},
99118
{
@@ -114,6 +133,10 @@
114133
"flags": {},
115134
"comment": {
116135
"shortText": "privateMethod short text."
136+
},
137+
"type": {
138+
"type": "instrinct",
139+
"name": "void"
117140
}
118141
}
119142
]
@@ -136,6 +159,10 @@
136159
"flags": {},
137160
"comment": {
138161
"shortText": "publicMethod short text."
162+
},
163+
"type": {
164+
"type": "instrinct",
165+
"name": "void"
139166
}
140167
}
141168
]
@@ -158,6 +185,10 @@
158185
"flags": {},
159186
"comment": {
160187
"shortText": "staticMethod short text."
188+
},
189+
"type": {
190+
"type": "instrinct",
191+
"name": "void"
161192
}
162193
}
163194
]
@@ -310,9 +341,17 @@
310341
"flags": {},
311342
"comment": {
312343
"text": "Test parameter."
344+
},
345+
"type": {
346+
"type": "instrinct",
347+
"name": "string"
313348
}
314349
}
315-
]
350+
],
351+
"type": {
352+
"type": "instrinct",
353+
"name": "boolean"
354+
}
316355
}
317356
]
318357
}

test/converter/generic-class/specs.json

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"id": 23,
2+
"id": 0,
33
"name": "typedoc",
44
"kind": 0,
55
"flags": {},
66
"children": [
77
{
8-
"id": 24,
8+
"id": 1,
99
"name": "\"generic-class\"",
1010
"kind": 1,
1111
"kindString": "External module",
@@ -15,7 +15,7 @@
1515
"originalName": "%BASE%/generic-class/generic-class.ts",
1616
"children": [
1717
{
18-
"id": 25,
18+
"id": 2,
1919
"name": "GenericClass",
2020
"kind": 128,
2121
"kindString": "Class",
@@ -25,7 +25,7 @@
2525
},
2626
"typeParameter": [
2727
{
28-
"id": 26,
28+
"id": 3,
2929
"name": "T",
3030
"kind": 131072,
3131
"kindString": "Type parameter",
@@ -37,7 +37,7 @@
3737
],
3838
"children": [
3939
{
40-
"id": 28,
40+
"id": 5,
4141
"name": "constructor",
4242
"kind": 512,
4343
"kindString": "Constructor",
@@ -47,7 +47,7 @@
4747
},
4848
"signatures": [
4949
{
50-
"id": 29,
50+
"id": 6,
5151
"name": "new GenericClass",
5252
"kind": 16384,
5353
"kindString": "Constructor signature",
@@ -57,21 +57,30 @@
5757
},
5858
"parameters": [
5959
{
60-
"id": 30,
60+
"id": 7,
6161
"name": "value",
6262
"kind": 32768,
6363
"kindString": "Parameter",
6464
"flags": {},
6565
"comment": {
6666
"shortText": "Constructor parameter.\n"
67+
},
68+
"type": {
69+
"type": "typeParameter",
70+
"name": "T"
6771
}
6872
}
69-
]
73+
],
74+
"type": {
75+
"type": "reference",
76+
"name": "GenericClass",
77+
"symbolID": -1
78+
}
7079
}
7180
]
7281
},
7382
{
74-
"id": 27,
83+
"id": 4,
7584
"name": "value",
7685
"kind": 1024,
7786
"kindString": "Property",
@@ -80,24 +89,32 @@
8089
},
8190
"comment": {
8291
"shortText": "Generic property."
92+
},
93+
"type": {
94+
"type": "typeParameter",
95+
"name": "T"
8396
}
8497
},
8598
{
86-
"id": 31,
99+
"id": 8,
87100
"name": "getValue",
88101
"kind": 2048,
89102
"kindString": "Method",
90103
"flags": {},
91104
"signatures": [
92105
{
93-
"id": 32,
106+
"id": 9,
94107
"name": "getValue",
95108
"kind": 4096,
96109
"kindString": "Call signature",
97110
"flags": {},
98111
"comment": {
99112
"shortText": "getValue short text.",
100113
"returns": "Return value comment.\n"
114+
},
115+
"type": {
116+
"type": "typeParameter",
117+
"name": "T"
101118
}
102119
}
103120
]
@@ -108,21 +125,21 @@
108125
"title": "Constructors",
109126
"kind": 512,
110127
"children": [
111-
28
128+
5
112129
]
113130
},
114131
{
115132
"title": "Properties",
116133
"kind": 1024,
117134
"children": [
118-
27
135+
4
119136
]
120137
},
121138
{
122139
"title": "Methods",
123140
"kind": 2048,
124141
"children": [
125-
31
142+
8
126143
]
127144
}
128145
]
@@ -133,7 +150,7 @@
133150
"title": "Classes",
134151
"kind": 128,
135152
"children": [
136-
25
153+
2
137154
]
138155
}
139156
]
@@ -144,7 +161,7 @@
144161
"title": "External modules",
145162
"kind": 1,
146163
"children": [
147-
24
164+
1
148165
]
149166
}
150167
]

test/converter/generic-function/specs.json

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"id": 33,
2+
"id": 0,
33
"name": "typedoc",
44
"kind": 0,
55
"flags": {},
66
"children": [
77
{
8-
"id": 34,
8+
"id": 1,
99
"name": "\"generic-function\"",
1010
"kind": 1,
1111
"kindString": "External module",
@@ -15,14 +15,14 @@
1515
"originalName": "%BASE%/generic-function/generic-function.ts",
1616
"children": [
1717
{
18-
"id": 35,
18+
"id": 2,
1919
"name": "genericFunction",
2020
"kind": 64,
2121
"kindString": "Function",
2222
"flags": {},
2323
"signatures": [
2424
{
25-
"id": 36,
25+
"id": 3,
2626
"name": "genericFunction",
2727
"kind": 4096,
2828
"kindString": "Call signature",
@@ -33,28 +33,68 @@
3333
},
3434
"typeParameter": [
3535
{
36-
"id": 37,
36+
"id": 4,
3737
"name": "T",
3838
"kind": 131072,
3939
"kindString": "Type parameter",
4040
"flags": {},
4141
"comment": {
4242
"text": "Generic function type parameter."
43+
},
44+
"type": {
45+
"type": "reference",
46+
"name": "Object",
47+
"symbolID": 29501
4348
}
4449
}
4550
],
4651
"parameters": [
4752
{
48-
"id": 38,
53+
"id": 5,
4954
"name": "value",
5055
"kind": 32768,
5156
"kindString": "Parameter",
5257
"flags": {},
5358
"comment": {
5459
"text": "Generic function parameter."
60+
},
61+
"type": {
62+
"type": "typeParameter",
63+
"name": "T",
64+
"constraint": {
65+
"type": "reference",
66+
"name": "Object",
67+
"symbolID": 29501
68+
}
5569
}
5670
}
57-
]
71+
],
72+
"typeParameters": [
73+
{
74+
"id": 4,
75+
"name": "T",
76+
"kind": 131072,
77+
"kindString": "Type parameter",
78+
"flags": {},
79+
"comment": {
80+
"text": "Generic function type parameter."
81+
},
82+
"type": {
83+
"type": "reference",
84+
"name": "Object",
85+
"symbolID": 29501
86+
}
87+
}
88+
],
89+
"type": {
90+
"type": "typeParameter",
91+
"name": "T",
92+
"constraint": {
93+
"type": "reference",
94+
"name": "Object",
95+
"symbolID": 29501
96+
}
97+
}
5898
}
5999
]
60100
}
@@ -64,7 +104,7 @@
64104
"title": "Functions",
65105
"kind": 64,
66106
"children": [
67-
35
107+
2
68108
]
69109
}
70110
]
@@ -75,7 +115,7 @@
75115
"title": "External modules",
76116
"kind": 1,
77117
"children": [
78-
34
118+
1
79119
]
80120
}
81121
]

0 commit comments

Comments
 (0)