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.
65 lines
1.3 KiB
Text
65 lines
1.3 KiB
Text
[
|
|
@12-19 SpaceBefore(
|
|
Value(
|
|
Body(
|
|
@12-15 Identifier(
|
|
"foo",
|
|
),
|
|
@18-19 Num(
|
|
"1",
|
|
),
|
|
),
|
|
),
|
|
[
|
|
LineComment(
|
|
" comment 1",
|
|
),
|
|
],
|
|
),
|
|
@33-43 SpaceBefore(
|
|
Value(
|
|
Body(
|
|
@33-36 Identifier(
|
|
"bar",
|
|
),
|
|
@39-43 Str(
|
|
PlainLine(
|
|
"hi",
|
|
),
|
|
),
|
|
),
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
LineComment(
|
|
" comment 2",
|
|
),
|
|
],
|
|
),
|
|
@44-57 SpaceAfter(
|
|
SpaceBefore(
|
|
Value(
|
|
Body(
|
|
@44-47 Identifier(
|
|
"baz",
|
|
),
|
|
@50-57 Str(
|
|
PlainLine(
|
|
"stuff",
|
|
),
|
|
),
|
|
),
|
|
),
|
|
[
|
|
Newline,
|
|
],
|
|
),
|
|
[
|
|
Newline,
|
|
LineComment(
|
|
" comment n",
|
|
),
|
|
],
|
|
),
|
|
]
|