mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +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.
39 lines
794 B
Text
39 lines
794 B
Text
SpaceBefore(
|
|
Defs(
|
|
[
|
|
@113-118 Value(
|
|
Body(
|
|
@113-114 Identifier(
|
|
"x",
|
|
),
|
|
@117-118 Num(
|
|
"5",
|
|
),
|
|
),
|
|
),
|
|
],
|
|
@120-122 SpaceBefore(
|
|
Num(
|
|
"42",
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
),
|
|
[
|
|
LineComment(
|
|
"## not docs!",
|
|
),
|
|
DocComment(
|
|
"docs, but with a problem",
|
|
),
|
|
DocComment(
|
|
"(namely that this is a mix of docs and regular comments)",
|
|
),
|
|
LineComment(
|
|
" not docs",
|
|
),
|
|
],
|
|
)
|