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

61 lines
1.4 KiB
Text

@0-12 Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-1,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
space_after: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
spaces: [],
type_defs: [],
value_defs: [
Stmt(
@0-1 Var {
module_name: "",
ident: "d",
},
),
],
},
@2-12 SpaceBefore(
Backpassing(
[
@2-3 SpaceAfter(
Identifier {
ident: "t",
},
[
LineComment(
"",
),
],
),
],
@8-9 Var {
module_name: "",
ident: "b",
},
@10-12 SpaceBefore(
UnaryOp(
@11-12 Var {
module_name: "",
ident: "f",
},
@10-11 Negate,
),
[
Newline,
],
),
),
[
Newline,
],
),
)