File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,9 @@ namespace ts {
580
580
case SyntaxKind . BinaryExpression :
581
581
bindBinaryExpressionFlow ( < BinaryExpression > node ) ;
582
582
break ;
583
+ case SyntaxKind . DeleteExpression :
584
+ bindDeleteExpressionFlow ( < DeleteExpression > node ) ;
585
+ break ;
583
586
case SyntaxKind . ConditionalExpression :
584
587
bindConditionalExpressionFlow ( < ConditionalExpression > node ) ;
585
588
break ;
@@ -1055,6 +1058,13 @@ namespace ts {
1055
1058
}
1056
1059
}
1057
1060
1061
+ function bindDeleteExpressionFlow ( node : DeleteExpression ) {
1062
+ forEachChild ( node , bind ) ;
1063
+ if ( node . expression . kind === SyntaxKind . PropertyAccessExpression ) {
1064
+ bindAssignmentTargetFlow ( node . expression ) ;
1065
+ }
1066
+ }
1067
+
1058
1068
function bindConditionalExpressionFlow ( node : ConditionalExpression ) {
1059
1069
const trueLabel = createBranchLabel ( ) ;
1060
1070
const falseLabel = createBranchLabel ( ) ;
Original file line number Diff line number Diff line change @@ -7563,6 +7563,8 @@ namespace ts {
7563
7563
return checkRightHandSideOfForOf((<ForOfStatement>parent).expression) || unknownType;
7564
7564
case SyntaxKind.BinaryExpression:
7565
7565
return getAssignedTypeOfBinaryExpression(<BinaryExpression>parent);
7566
+ case SyntaxKind.DeleteExpression:
7567
+ return undefinedType;
7566
7568
case SyntaxKind.ArrayLiteralExpression:
7567
7569
return getAssignedTypeOfArrayLiteralElement(<ArrayLiteralExpression>parent, node);
7568
7570
case SyntaxKind.SpreadElementExpression:
You can’t perform that action at this time.
0 commit comments