File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1619,6 +1619,9 @@ namespace ts {
1619
1619
if ( isNewExpression ( node . parent ) && node . pos === node . parent . pos ) {
1620
1620
return node . parent . expression ;
1621
1621
}
1622
+ if ( isNamedTupleMember ( node . parent ) && node . pos === node . parent . pos ) {
1623
+ return node . parent ;
1624
+ }
1622
1625
return node ;
1623
1626
}
1624
1627
@@ -1633,6 +1636,7 @@ namespace ts {
1633
1636
case SyntaxKind . ThisKeyword :
1634
1637
case SyntaxKind . ThisType :
1635
1638
case SyntaxKind . SuperKeyword :
1639
+ case SyntaxKind . NamedTupleMember :
1636
1640
return true ;
1637
1641
default :
1638
1642
return false ;
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ ////type foo = [/**/x: string];
4
+
5
+ verify . quickInfoAt ( "" , "string" ) ;
You can’t perform that action at this time.
0 commit comments