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

64 lines
1.7 KiB
Text

@0-53 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-33,
],
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(
@0-15 Identifier {
ident: "launchTheNukes!",
},
@18-33 Closure(
[
@19-21 RecordDestructure(
[],
),
],
@29-33 SpaceBefore(
Var {
module_name: "",
ident: "boom",
},
[
Newline,
],
),
),
),
],
},
@35-53 SpaceBefore(
Apply(
@35-50 Var {
module_name: "",
ident: "launchTheNukes!",
},
[
@51-53 Record(
[],
),
],
Space,
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
)