oxc/crates/oxc_semantic/tests/integration/snapshots/labelled_try_break.snap
DonIsaac fd2d9dafcd feat(ast): improve AstKind::debug_name (#4553)
> Part of #4445

Improve `debug_name` to show identifier names for more AST kinds.
2024-08-03 21:22:05 +00:00

96 lines
1.8 KiB
Text

---
source: crates/oxc_semantic/tests/integration/cfg.rs
expression: snapshot
input_file: crates/oxc_semantic/tests/integration/cfg_fixtures/labelled_try_break.js
---
bb0: {
}
bb1: {
statement
}
bb2: {
}
bb3: {
statement
statement
}
bb4: {
}
bb5: {
statement
return <value>
}
bb6: {
unreachable
}
bb7: {
break <label>
}
bb8: {
unreachable
}
bb9: {
}
bb10: {
return <value>
}
bb11: {
unreachable
}
bb12: {
}
digraph {
0 [ label = "" ]
1 [ label = "VariableDeclaration" ]
2 [ label = "" ]
3 [ label = "LabeledStatement(label)\nTryStatement" ]
4 [ label = "" ]
5 [ label = "BlockStatement\nreturn <value>" ]
6 [ label = "unreachable" ]
7 [ label = "break <label>" ]
8 [ label = "unreachable" ]
9 [ label = "" ]
10 [ label = "return <value>" ]
11 [ label = "unreachable" ]
12 [ label = "" ]
1 -> 0 [ label = "Error(Implicit)" ]
3 -> 2 [ label = "Error(Implicit)" ]
1 -> 3 [ label = "NewFunction" ]
5 -> 2 [ label = "Error(Implicit)" ]
5 -> 4 [ label = "Finalize" ]
6 -> 2 [ label = "Error(Implicit)" , style = "dotted" ]
6 -> 4 [ label = "Finalize" , style = "dotted" ]
5 -> 6 [ label = "Unreachable" , style = "dotted" ]
7 -> 2 [ label = "Error(Implicit)" ]
4 -> 7 [ label = "Normal" ]
8 -> 2 [ label = "Error(Implicit)" , style = "dotted" ]
7 -> 8 [ label = "Unreachable" , style = "dotted" ]
9 -> 2 [ label = "Error(Implicit)" , style = "dotted" ]
3 -> 5 [ label = "Normal" ]
8 -> 9 [ label = "Unreachable" , style = "dotted" ]
10 -> 2 [ label = "Error(Implicit)" ]
9 -> 10 [ label = "Normal" , style = "dotted" ]
7 -> 10 [ label = "Jump" ]
11 -> 2 [ label = "Error(Implicit)" , style = "dotted" ]
10 -> 11 [ label = "Unreachable" , style = "dotted" ]
12 -> 0 [ label = "Error(Implicit)" ]
1 -> 12 [ label = "Normal" ]
}