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

59 lines
1.6 KiB
Text

@0-30 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(0),
],
regions: [
@0-26,
],
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: [
Alias {
header: TypeHeader {
name: @0-4 "Blah",
vars: [
@5-6 Identifier {
ident: "a",
},
@7-8 Identifier {
ident: "b",
},
],
},
ann: @11-26 Apply(
"Foo.Bar",
"Baz",
[
@23-24 BoundVariable(
"x",
),
@25-26 BoundVariable(
"y",
),
],
),
},
],
value_defs: [],
},
@28-30 SpaceBefore(
Num(
"42",
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
)