mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00

... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
49 lines
1.1 KiB
Text
49 lines
1.1 KiB
Text
SpaceBefore(
|
|
SpaceAfter(
|
|
Defs(
|
|
Defs {
|
|
tags: [
|
|
Index(2147483648),
|
|
],
|
|
regions: [
|
|
@18-21,
|
|
],
|
|
space_before: [
|
|
Slice(start = 0, length = 0),
|
|
],
|
|
space_after: [
|
|
Slice(start = 0, length = 0),
|
|
],
|
|
spaces: [],
|
|
type_defs: [],
|
|
value_defs: [
|
|
Body(
|
|
@18-19 Identifier {
|
|
ident: "x",
|
|
},
|
|
@20-21 Num(
|
|
"5",
|
|
),
|
|
),
|
|
],
|
|
},
|
|
@23-25 SpaceBefore(
|
|
Num(
|
|
"42",
|
|
),
|
|
[
|
|
Newline,
|
|
Newline,
|
|
],
|
|
),
|
|
),
|
|
[
|
|
Newline,
|
|
],
|
|
),
|
|
[
|
|
LineComment(
|
|
" leading comment",
|
|
),
|
|
],
|
|
)
|