Skip to content

Commit 67cd3ff

Browse files
author
Andy Hanson
committed
Add another comment to test
1 parent 9a2458e commit 67cd3ff

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/harness/unittests/jsDocParsing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ namespace ts {
309309
parsesCorrectly("Nested @param tags",
310310
`/**
311311
* @param {object} o Doc doc
312-
* @param {string} o.f
312+
* @param {string} o.f Doc for f
313313
*/`);
314314
});
315315
});

tests/baselines/reference/JSDocParsing/DocComments.parsesCorrectly.Nested @param tags.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "JSDocComment",
33
"pos": 0,
4-
"end": 56,
4+
"end": 66,
55
"tags": {
66
"0": {
77
"kind": "JSDocParameterTag",
88
"pos": 6,
9-
"end": 53,
9+
"end": 63,
1010
"atToken": {
1111
"kind": "AtToken",
1212
"pos": 6,
@@ -21,16 +21,16 @@
2121
"typeExpression": {
2222
"kind": "JSDocTypeExpression",
2323
"pos": 34,
24-
"end": 53,
24+
"end": 63,
2525
"type": {
2626
"kind": "JSDocTypeLiteral",
2727
"pos": 34,
28-
"end": 53,
28+
"end": 63,
2929
"jsDocPropertyTags": [
3030
{
3131
"kind": "JSDocParameterTag",
3232
"pos": 34,
33-
"end": 53,
33+
"end": 54,
3434
"atToken": {
3535
"kind": "AtToken",
3636
"pos": 34,
@@ -70,7 +70,8 @@
7070
}
7171
},
7272
"isNameFirst": false,
73-
"isBracketed": false
73+
"isBracketed": false,
74+
"comment": "Doc for f"
7475
}
7576
]
7677
}
@@ -87,6 +88,6 @@
8788
},
8889
"length": 1,
8990
"pos": 6,
90-
"end": 53
91+
"end": 63
9192
}
9293
}

0 commit comments

Comments
 (0)