File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2456,13 +2456,23 @@ namespace ts {
2456
2456
}
2457
2457
else {
2458
2458
for ( const j of node . jsDoc ! ) {
2459
- setParent ( j , node ) ;
2460
- setParentRecursive ( j , /*incremental*/ false ) ;
2459
+ setParentsAndBindAnonymousJSDocTypes ( j ) ;
2461
2460
}
2462
2461
}
2463
2462
}
2464
2463
}
2465
2464
2465
+ function setParentsAndBindAnonymousJSDocTypes ( node : Node ) {
2466
+ setParent ( node , parent ) ;
2467
+ const saveParent = parent ;
2468
+ parent = node ;
2469
+ if ( node . kind === SyntaxKind . TypeLiteral ) {
2470
+ bindWorker ( node ) ;
2471
+ }
2472
+ forEachChild ( node , setParentsAndBindAnonymousJSDocTypes ) ;
2473
+ parent = saveParent ;
2474
+ }
2475
+
2466
2476
function updateStrictModeStatementList ( statements : NodeArray < Statement > ) {
2467
2477
if ( ! inStrictMode ) {
2468
2478
for ( const statement of statements ) {
You can’t perform that action at this time.
0 commit comments