File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
baselines/reference/JSDocParsing Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -6835,7 +6835,7 @@ namespace ts {
6835
6835
let child : JSDocTypeTag | JSDocPropertyTag | false ;
6836
6836
let jsdocTypeLiteral : JSDocTypeLiteral | undefined ;
6837
6837
let childTypeTag : JSDocTypeTag | undefined ;
6838
- const start = scanner . getStartPos ( ) ;
6838
+ const start = atToken . pos ;
6839
6839
while ( child = tryParse ( ( ) => parseChildPropertyTag ( ) ) ) {
6840
6840
if ( ! jsdocTypeLiteral ) {
6841
6841
jsdocTypeLiteral = < JSDocTypeLiteral > createNode ( SyntaxKind . JSDocTypeLiteral , start ) ;
Original file line number Diff line number Diff line change 32
32
},
33
33
"typeExpression" : {
34
34
"kind" : " JSDocTypeLiteral" ,
35
- "pos" : 28 ,
35
+ "pos" : 8 ,
36
36
"end" : 100 ,
37
37
"jsDocPropertyTags" : [
38
38
{
Original file line number Diff line number Diff line change
1
+ /// <reference path='fourslash.ts' />
2
+
3
+ // @allowJs : true
4
+
5
+ // @Filename : /a.js
6
+ /////**
7
+ //// * /*def*/@typedef {object } I
8
+ //// * @property {number } x
9
+ //// */
10
+ ////
11
+ /////** @type {I } */
12
+ ////const /*ref*/i = { x: 0 };
13
+
14
+ verify . goToType ( "ref" , "def" ) ;
You can’t perform that action at this time.
0 commit comments