roc/compiler/parse/tests/snapshots/pass/standalone_module_defs.module.result-ast
Ayaz Hafiz a3ac68a41f
Split up Defs into TypeDef and ValueDef
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.
2022-04-06 22:18:57 -04:00

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",
),
],
),
]