File tree Expand file tree Collapse file tree
baselines/reference/JSDocParsing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6835,7 +6835,7 @@ namespace ts {
68356835 let child : JSDocTypeTag | JSDocPropertyTag | false ;
68366836 let jsdocTypeLiteral : JSDocTypeLiteral | undefined ;
68376837 let childTypeTag : JSDocTypeTag | undefined ;
6838- const start = scanner . getStartPos ( ) ;
6838+ const start = atToken . pos ;
68396839 while ( child = tryParse ( ( ) => parseChildPropertyTag ( ) ) ) {
68406840 if ( ! jsdocTypeLiteral ) {
68416841 jsdocTypeLiteral = < JSDocTypeLiteral > createNode ( SyntaxKind . JSDocTypeLiteral , start ) ;
Original file line number Diff line number Diff line change 3232 },
3333 "typeExpression" : {
3434 "kind" : " JSDocTypeLiteral" ,
35- "pos" : 28 ,
35+ "pos" : 8 ,
3636 "end" : 100 ,
3737 "jsDocPropertyTags" : [
3838 {
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