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

42 lines
880 B
Text

SpaceAfter(
Defs(
Defs {
tags: [
Index(2147483648),
],
regions: [
@0-6,
],
space_before: [
Slice(start = 0, length = 0),
],
space_after: [
Slice(start = 0, length = 0),
],
spaces: [],
type_defs: [],
value_defs: [
Body(
@0-4 Identifier {
ident: "iffy",
},
@5-6 Num(
"5",
),
),
],
},
@8-10 SpaceBefore(
Num(
"42",
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
)