roc/compiler/parse/tests/snapshots/pass/module_def_newline.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

46 lines
1.4 KiB
Text

[
@0-24 SpaceAfter(
SpaceBefore(
Value(
Body(
@0-4 Identifier(
"main",
),
@11-24 SpaceBefore(
Defs(
[
@11-17 Value(
Body(
@11-12 Identifier(
"i",
),
@15-17 Num(
"64",
),
),
),
],
@23-24 SpaceBefore(
Var {
module_name: "",
ident: "i",
},
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
),
),
[],
),
[
Newline,
],
),
]