roc/crates/compiler/test_syntax/tests/snapshots/pass/one_backpassing.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

42 lines
945 B
Text

@18-35 SpaceBefore(
SpaceAfter(
Backpassing(
[
@18-19 Identifier {
ident: "x",
},
],
@23-32 ParensAround(
Closure(
[
@25-26 Identifier {
ident: "y",
},
],
@30-31 Var {
module_name: "",
ident: "y",
},
),
),
@34-35 SpaceBefore(
Var {
module_name: "",
ident: "x",
},
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
[
LineComment(
" leading comment",
),
],
)