roc/crates/compiler/test_syntax/tests/snapshots/pass/two_backpassing.expr.result-ast
Joshua Warner 4f32f43048
Implement block / indent based parsing
... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
2024-07-27 13:34:16 -07:00

57 lines
1.4 KiB
Text

SpaceBefore(
SpaceAfter(
Backpassing(
[
@18-19 Identifier {
ident: "x",
},
],
@23-32 ParensAround(
Closure(
[
@25-26 Identifier {
ident: "y",
},
],
@30-31 Var {
module_name: "",
ident: "y",
},
),
),
@33-43 SpaceBefore(
Backpassing(
[
@33-34 Identifier {
ident: "z",
},
],
@38-40 Record(
[],
),
@42-43 SpaceBefore(
Var {
module_name: "",
ident: "x",
},
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
),
[
Newline,
],
),
[
LineComment(
" leading comment",
),
],
)