oxc/crates/oxc_semantic/tests/integration/snapshots/switch_in_while.snap

88 lines
1.7 KiB
Text

---
source: crates/oxc_semantic/tests/integration/cfg.rs
expression: snapshot
input_file: crates/oxc_semantic/tests/integration/cfg_fixtures/switch_in_while.js
---
bb0: {
}
bb1: {
statement
}
bb2: {
condition
}
bb3: {
statement
statement
}
bb4: {
condition
}
bb5: {
statement
continue
}
bb6: {
unreachable
}
bb7: {
condition
}
bb8: {
statement
}
bb9: {
}
bb10: {
}
digraph {
0 [ label = "" ]
1 [ label = "WhileStatement" ]
2 [ label = "Condition(IdentifierReference(a))" ]
3 [ label = "BlockStatement\nSwitchStatement" ]
4 [ label = "Condition(0)" ]
5 [ label = "ExpressionStatement\ncontinue" ]
6 [ label = "unreachable" ]
7 [ label = "Condition(1)" ]
8 [ label = "ExpressionStatement" ]
9 [ label = "" ]
10 [ label = "" ]
1 -> 0 [ label = "Error(Implicit)" ]
2 -> 0 [ label = "Error(Implicit)" ]
3 -> 0 [ label = "Error(Implicit)" ]
4 -> 0 [ label = "Error(Implicit)" ]
5 -> 0 [ label = "Error(Implicit)" ]
4 -> 5 [ label = "Jump" ]
6 -> 0 [ label = "Error(Implicit)" , style = "dotted" ]
5 -> 6 [ label = "Unreachable" , style = "dotted" ]
7 -> 0 [ label = "Error(Implicit)" ]
8 -> 0 [ label = "Error(Implicit)" ]
7 -> 8 [ label = "Jump" ]
4 -> 7 [ label = "Normal" ]
6 -> 7 [ label = "Normal" , style = "dotted" ]
3 -> 4 [ label = "Normal" ]
3 -> 7 [ label = "Normal" ]
9 -> 0 [ label = "Error(Implicit)" ]
8 -> 9 [ label = "Normal" ]
3 -> 9 [ label = "Normal" ]
10 -> 0 [ label = "Error(Implicit)" ]
1 -> 2 [ label = "Normal" ]
2 -> 3 [ label = "Jump" ]
9 -> 2 [ label = "Backedge" ]
2 -> 10 [ label = "Normal" ]
5 -> 2 [ label = "Jump" ]
}