mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +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.
28 lines
506 B
Text
28 lines
506 B
Text
Defs(
|
|
[
|
|
@0-9 Value(
|
|
Body(
|
|
@0-1 Identifier(
|
|
"x",
|
|
),
|
|
@8-9 SpaceBefore(
|
|
Num(
|
|
"5",
|
|
),
|
|
[
|
|
Newline,
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
@11-13 SpaceBefore(
|
|
Num(
|
|
"42",
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
)
|