mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41: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.
45 lines
962 B
Text
45 lines
962 B
Text
SpaceBefore(
|
|
Defs(
|
|
[
|
|
@18-23 Value(
|
|
Body(
|
|
@18-19 Identifier(
|
|
"x",
|
|
),
|
|
@22-23 Num(
|
|
"5",
|
|
),
|
|
),
|
|
),
|
|
@24-29 SpaceBefore(
|
|
Value(
|
|
Body(
|
|
@24-25 Identifier(
|
|
"y",
|
|
),
|
|
@28-29 Num(
|
|
"6",
|
|
),
|
|
),
|
|
),
|
|
[
|
|
Newline,
|
|
],
|
|
),
|
|
],
|
|
@31-33 SpaceBefore(
|
|
Num(
|
|
"42",
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
),
|
|
[
|
|
LineComment(
|
|
" leading comment",
|
|
),
|
|
],
|
|
)
|