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.
36 lines
829 B
Text
36 lines
829 B
Text
Defs(
|
|
[
|
|
@0-15 Value(
|
|
Annotation(
|
|
@0-1 Identifier(
|
|
"f",
|
|
),
|
|
@4-15 Where(
|
|
@4-5 BoundVariable(
|
|
"a",
|
|
),
|
|
[
|
|
@8-15 HasClause {
|
|
var: @8-9 "a",
|
|
ability: @14-15 Apply(
|
|
"",
|
|
"A",
|
|
[],
|
|
),
|
|
},
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
@17-18 SpaceBefore(
|
|
Var {
|
|
module_name: "",
|
|
ident: "f",
|
|
},
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
)
|