roc/crates/compiler/test_syntax/tests/snapshots/pass/pattern_as.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

35 lines
868 B
Text

SpaceAfter(
When(
@5-6 Num(
"0",
),
[
WhenBranch {
patterns: [
@14-20 SpaceBefore(
As(
@14-15 Underscore(
"",
),
PatternAs {
spaces_before: [],
identifier: @19-20 "n",
},
),
[
Newline,
],
),
],
value: @24-25 Var {
module_name: "",
ident: "n",
},
guard: None,
},
],
),
[
Newline,
],
)