roc/crates/compiler/test_syntax/tests/snapshots/pass/nested_if.expr.result-ast
Joshua Warner b4fa7294c7
Extend test_syntax to check that canonicalization doesn't panic on the input
Importantly, this would have caught the issue discovered in #7279, prior to that landing on main.
2024-12-06 17:13:10 -08:00

56 lines
1.3 KiB
Text

@0-43 SpaceAfter(
If {
if_thens: [
(
@3-5 Var {
module_name: "",
ident: "t1",
},
@13-14 SpaceBefore(
SpaceAfter(
Num(
"1",
),
[
Newline,
],
),
[
Newline,
],
),
),
(
@23-25 Var {
module_name: "",
ident: "t2",
},
@33-34 SpaceBefore(
SpaceAfter(
Num(
"2",
),
[
Newline,
],
),
[
Newline,
],
),
),
],
final_else: @42-43 SpaceBefore(
Num(
"3",
),
[
Newline,
],
),
indented_else: false,
},
[
Newline,
],
)