Skip to content

Commit

Permalink
Fixed a bug in the control flow debugging code that prints the contro…
Browse files Browse the repository at this point in the history
…l flow graph. It was not correctly handling one of the node types which led to incomplete graphs.
  • Loading branch information
msfterictraut committed Jun 18, 2023
1 parent 643bb1d commit 056415f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/pyright-internal/src/analyzer/codeFlowUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export function formatControlFlowGraph(flowNode: FlowNode) {
FlowFlags.WildcardImport |
FlowFlags.TrueCondition |
FlowFlags.FalseCondition |
FlowFlags.TrueNeverCondition |
FlowFlags.FalseNeverCondition |
FlowFlags.NarrowForPattern |
FlowFlags.ExhaustedMatch |
FlowFlags.Call |
Expand All @@ -115,7 +117,6 @@ export function formatControlFlowGraph(flowNode: FlowNode) {
| FlowVariableAnnotation
| FlowWildcardImport
| FlowCondition
| FlowCondition
| FlowExhaustedMatch
| FlowCall
| FlowPreFinallyGate
Expand Down

0 comments on commit 056415f

Please sign in to comment.