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

74 lines
2.1 KiB
Text

@0-52 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-39,
],
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: [
AnnotatedBody {
ann_pattern: @0-5 Identifier {
ident: "where",
},
ann_type: @8-20 Record {
fields: [
@9-19 RequiredValue(
@9-14 "where",
[],
@16-19 Apply(
"",
"I32",
[],
),
),
],
ext: None,
},
lines_between: [
Newline,
],
body_pattern: @21-26 Identifier {
ident: "where",
},
body_expr: @29-39 Record(
[
@30-38 RequiredValue(
@30-35 "where",
[],
@37-38 Num(
"1",
),
),
],
),
},
],
},
@41-52 SpaceBefore(
RecordAccess(
Var {
module_name: "",
ident: "where",
},
"where",
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
)