Skip to content

Commit 71f1d2a

Browse files
committed
Add multiple augments to memberof example
1 parent aeccacf commit 71f1d2a

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

test/fixture/multiexample.input.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* foo(2);
88
* @throws {Error} if you give it something
99
* @throws {TypeError} if you give it something else
10+
* @augments Foo
11+
* @augments Bar
1012
*/
1113
module.exports = function () {
1214
// this returns 1

test/fixture/multiexample.output.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@
3939
"name": "TypeError"
4040
}
4141
},
42+
{
43+
"title": "augments",
44+
"description": null,
45+
"lineNumber": 9,
46+
"type": null,
47+
"name": "Foo"
48+
},
49+
{
50+
"title": "augments",
51+
"description": null,
52+
"lineNumber": 10,
53+
"type": null,
54+
"name": "Bar"
55+
},
4256
{
4357
"title": "name",
4458
"name": "exports"
@@ -61,18 +75,18 @@
6175
"column": 0
6276
},
6377
"end": {
64-
"line": 10,
78+
"line": 12,
6579
"column": 3
6680
}
6781
},
6882
"context": {
6983
"loc": {
7084
"start": {
71-
"line": 11,
85+
"line": 13,
7286
"column": 0
7387
},
7488
"end": {
75-
"line": 14,
89+
"line": 16,
7690
"column": 2
7791
}
7892
},
@@ -114,6 +128,22 @@
114128
}
115129
}
116130
],
131+
"augments": [
132+
{
133+
"title": "augments",
134+
"description": null,
135+
"lineNumber": 9,
136+
"type": null,
137+
"name": "Foo"
138+
},
139+
{
140+
"title": "augments",
141+
"description": null,
142+
"lineNumber": 10,
143+
"type": null,
144+
"name": "Bar"
145+
}
146+
],
117147
"name": "exports",
118148
"kind": "function",
119149
"memberof": "module",

0 commit comments

Comments
 (0)