mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +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
869 B
Text
45 lines
869 B
Text
SpaceBefore(
|
|
Defs(
|
|
[
|
|
@107-112 Value(
|
|
Body(
|
|
@107-108 Identifier(
|
|
"x",
|
|
),
|
|
@111-112 Num(
|
|
"5",
|
|
),
|
|
),
|
|
),
|
|
],
|
|
@114-116 SpaceBefore(
|
|
Num(
|
|
"42",
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
),
|
|
[
|
|
DocComment(
|
|
"first line of docs",
|
|
),
|
|
DocComment(
|
|
" second line",
|
|
),
|
|
DocComment(
|
|
" third line",
|
|
),
|
|
DocComment(
|
|
"fourth line",
|
|
),
|
|
DocComment(
|
|
"",
|
|
),
|
|
DocComment(
|
|
"sixth line after doc new line",
|
|
),
|
|
],
|
|
)
|