File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -4340,7 +4340,7 @@ namespace ts {
4340
4340
}
4341
4341
}
4342
4342
4343
- function getLeftmostExpression ( node : Expression , stopAtCallExpressions : boolean ) {
4343
+ function getLeftmostExpression ( node : Expression , stopAtCallExpressions : boolean | undefined ) {
4344
4344
while ( true ) {
4345
4345
switch ( node . kind ) {
4346
4346
case SyntaxKind . PostfixUnaryExpression :
@@ -4354,19 +4354,17 @@ namespace ts {
4354
4354
case SyntaxKind . ConditionalExpression :
4355
4355
node = ( < ConditionalExpression > node ) . condition ;
4356
4356
continue ;
4357
-
4358
4357
case SyntaxKind . CallExpression :
4359
4358
if ( stopAtCallExpressions ) {
4360
4359
return node ;
4361
4360
}
4362
4361
// falls through
4362
+ case SyntaxKind . AsExpression :
4363
4363
case SyntaxKind . ElementAccessExpression :
4364
4364
case SyntaxKind . PropertyAccessExpression :
4365
- node = ( < CallExpression | PropertyAccessExpression | ElementAccessExpression > node ) . expression ;
4366
- continue ;
4367
-
4365
+ case SyntaxKind . NonNullExpression :
4368
4366
case SyntaxKind . PartiallyEmittedExpression :
4369
- node = ( < PartiallyEmittedExpression > node ) . expression ;
4367
+ node = ( < CallExpression | PropertyAccessExpression | ElementAccessExpression | AsExpression | NonNullExpression | PartiallyEmittedExpression > node ) . expression ;
4370
4368
continue ;
4371
4369
}
4372
4370
You can’t perform that action at this time.
0 commit comments