You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/types.ts
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1554,8 +1554,9 @@ namespace ts {
1554
1554
Assignment=1<<4,// Assignment
1555
1555
TrueCondition=1<<5,// Condition known to be true
1556
1556
FalseCondition=1<<6,// Condition known to be false
1557
-
Referenced=1<<7,// Referenced as antecedent once
1558
-
Shared=1<<8,// Referenced as antecedent more than once
1557
+
SwitchClause=1<<7,// Switch statement clause
1558
+
Referenced=1<<8,// Referenced as antecedent once
1559
+
Shared=1<<9,// Referenced as antecedent more than once
1559
1560
Label=BranchLabel|LoopLabel,
1560
1561
Condition=TrueCondition|FalseCondition
1561
1562
}
@@ -1591,6 +1592,13 @@ namespace ts {
1591
1592
antecedent: FlowNode;
1592
1593
}
1593
1594
1595
+
exportinterfaceFlowSwitchClauseextendsFlowNode{
1596
+
switchStatement: SwitchStatement;
1597
+
clauseStart: number;// Start index of case/default clause range
1598
+
clauseEnd: number;// End index of case/default clause range
1599
+
antecedent: FlowNode;
1600
+
}
1601
+
1594
1602
exportinterfaceAmdDependency{
1595
1603
path: string;
1596
1604
name: string;
@@ -2170,6 +2178,7 @@ namespace ts {
2170
2178
resolvedJsxType?: Type;// resolved element attributes type of a JSX openinglike element
2171
2179
hasSuperCall?: boolean;// recorded result when we try to find super-call. We only try to find one if this flag is undefined, indicating that we haven't made an attempt.
2172
2180
superCall?: ExpressionStatement;// Cached first super-call found in the constructor. Used in checking whether super is called before this-accessing
2181
+
switchTypes?: Type[];// Cached array of switch case expression types
0 commit comments