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.
46 lines
1.1 KiB
Text
46 lines
1.1 KiB
Text
Defs(
|
|
[
|
|
@0-33 Value(
|
|
Annotation(
|
|
@0-3 Identifier(
|
|
"foo",
|
|
),
|
|
@6-33 As(
|
|
@6-21 Apply(
|
|
"Foo.Bar",
|
|
"Baz",
|
|
[
|
|
@18-19 BoundVariable(
|
|
"x",
|
|
),
|
|
@20-21 BoundVariable(
|
|
"y",
|
|
),
|
|
],
|
|
),
|
|
[],
|
|
TypeHeader {
|
|
name: @25-29 "Blah",
|
|
vars: [
|
|
@30-31 Identifier(
|
|
"a",
|
|
),
|
|
@32-33 Identifier(
|
|
"b",
|
|
),
|
|
],
|
|
},
|
|
),
|
|
),
|
|
),
|
|
],
|
|
@35-37 SpaceBefore(
|
|
Num(
|
|
"42",
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
)
|