mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00

Just a refactoring PR. This is useful because during canonicalization we always process type defs first, then value defs. With abilities this distinction continues to grow; in that case, we have patterns associated with types that we want to process before patterns from values.
40 lines
940 B
Text
40 lines
940 B
Text
Defs(
|
|
[
|
|
@0-26 Type(
|
|
Alias {
|
|
header: TypeHeader {
|
|
name: @0-4 "Blah",
|
|
vars: [
|
|
@5-6 Identifier(
|
|
"a",
|
|
),
|
|
@7-8 Identifier(
|
|
"b",
|
|
),
|
|
],
|
|
},
|
|
ann: @11-26 Apply(
|
|
"Foo.Bar",
|
|
"Baz",
|
|
[
|
|
@23-24 BoundVariable(
|
|
"x",
|
|
),
|
|
@25-26 BoundVariable(
|
|
"y",
|
|
),
|
|
],
|
|
),
|
|
},
|
|
),
|
|
],
|
|
@28-30 SpaceBefore(
|
|
Num(
|
|
"42",
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
)
|