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

49 lines
1.2 KiB
Text

@18-25 SpaceBefore(
SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@18-21,
],
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: [
Body(
@18-19 Identifier {
ident: "x",
},
@20-21 Num(
"5",
),
),
],
},
@23-25 SpaceBefore(
Num(
"42",
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
[
LineComment(
" leading comment",
),
],
)