Skip to content

Commit 66eb05d

Browse files
committed
fix
1 parent b93d071 commit 66eb05d

1 file changed

Lines changed: 0 additions & 136 deletions

File tree

tests/specs/class_constructor.txt

Lines changed: 0 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ export class Class3 {
1919
}
2020
}
2121

22-
/** doc4 */
23-
export class Class4 {
24-
constructor(s: string);
25-
constructor(s: number);
26-
constructor(value: string | number) {
27-
// won't require a jsdoc because it's a body
28-
}
29-
}
30-
3122
# diagnostics
3223
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
3324
--> /mod.ts:1:1
@@ -42,20 +33,6 @@ error[missing-jsdoc]: exported symbol is missing JSDoc documentation
4233
2 | constructor(public a, readonly b) {
4334
| ^
4435

45-
46-
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
47-
--> /mod.ts:23:3
48-
|
49-
23 | constructor(s: string);
50-
| ^
51-
52-
53-
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
54-
--> /mod.ts:24:3
55-
|
56-
24 | constructor(s: number);
57-
| ^
58-
5936
# output.txt
6037
Defined in file:///mod.ts:1:1
6138

@@ -77,14 +54,6 @@ class Class3
7754

7855
private constructor(value: string)
7956

80-
Defined in file:///mod.ts:22:1
81-
82-
class Class4
83-
doc4
84-
85-
constructor(s: string)
86-
constructor(s: number)
87-
8857

8958
# output.json
9059
[
@@ -227,110 +196,5 @@ class Class4
227196
"typeParams": [],
228197
"superTypeParams": []
229198
}
230-
},
231-
{
232-
"name": "Class4",
233-
"isDefault": false,
234-
"location": {
235-
"filename": "file:///mod.ts",
236-
"line": 22,
237-
"col": 0,
238-
"byteIndex": 368
239-
},
240-
"declarationKind": "export",
241-
"jsDoc": {
242-
"doc": "doc4"
243-
},
244-
"kind": "class",
245-
"classDef": {
246-
"isAbstract": false,
247-
"constructors": [
248-
{
249-
"accessibility": null,
250-
"name": "constructor",
251-
"params": [
252-
{
253-
"kind": "identifier",
254-
"name": "s",
255-
"optional": false,
256-
"tsType": {
257-
"repr": "string",
258-
"kind": "keyword",
259-
"keyword": "string"
260-
}
261-
}
262-
],
263-
"location": {
264-
"filename": "file:///mod.ts",
265-
"line": 23,
266-
"col": 2,
267-
"byteIndex": 392
268-
}
269-
},
270-
{
271-
"accessibility": null,
272-
"name": "constructor",
273-
"params": [
274-
{
275-
"kind": "identifier",
276-
"name": "s",
277-
"optional": false,
278-
"tsType": {
279-
"repr": "number",
280-
"kind": "keyword",
281-
"keyword": "number"
282-
}
283-
}
284-
],
285-
"location": {
286-
"filename": "file:///mod.ts",
287-
"line": 24,
288-
"col": 2,
289-
"byteIndex": 418
290-
}
291-
},
292-
{
293-
"accessibility": null,
294-
"hasBody": true,
295-
"name": "constructor",
296-
"params": [
297-
{
298-
"kind": "identifier",
299-
"name": "value",
300-
"optional": false,
301-
"tsType": {
302-
"repr": "",
303-
"kind": "union",
304-
"union": [
305-
{
306-
"repr": "string",
307-
"kind": "keyword",
308-
"keyword": "string"
309-
},
310-
{
311-
"repr": "number",
312-
"kind": "keyword",
313-
"keyword": "number"
314-
}
315-
]
316-
}
317-
}
318-
],
319-
"location": {
320-
"filename": "file:///mod.ts",
321-
"line": 25,
322-
"col": 2,
323-
"byteIndex": 444
324-
}
325-
}
326-
],
327-
"properties": [],
328-
"indexSignatures": [],
329-
"methods": [],
330-
"extends": null,
331-
"implements": [],
332-
"typeParams": [],
333-
"superTypeParams": []
334-
}
335199
}
336200
]

0 commit comments

Comments
 (0)