mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00

... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
80 lines
2.5 KiB
Text
80 lines
2.5 KiB
Text
SpaceAfter(
|
|
If(
|
|
[
|
|
(
|
|
@3-6 Var {
|
|
module_name: "",
|
|
ident: "foo",
|
|
},
|
|
@16-31 SpaceBefore(
|
|
SpaceAfter(
|
|
Defs(
|
|
Defs {
|
|
tags: [
|
|
Index(2147483648),
|
|
],
|
|
regions: [
|
|
@16-21,
|
|
],
|
|
space_before: [
|
|
Slice(start = 0, length = 0),
|
|
],
|
|
space_after: [
|
|
Slice(start = 0, length = 0),
|
|
],
|
|
spaces: [],
|
|
type_defs: [],
|
|
value_defs: [
|
|
Body(
|
|
@16-17 Identifier {
|
|
ident: "x",
|
|
},
|
|
@20-21 Var {
|
|
module_name: "",
|
|
ident: "a",
|
|
},
|
|
),
|
|
],
|
|
},
|
|
@30-31 SpaceBefore(
|
|
Var {
|
|
module_name: "",
|
|
ident: "x",
|
|
},
|
|
[
|
|
LineComment(
|
|
" 1",
|
|
),
|
|
],
|
|
),
|
|
),
|
|
[
|
|
LineComment(
|
|
" 2",
|
|
),
|
|
],
|
|
),
|
|
[
|
|
Newline,
|
|
],
|
|
),
|
|
),
|
|
],
|
|
@49-50 SpaceBefore(
|
|
Var {
|
|
module_name: "",
|
|
ident: "c",
|
|
},
|
|
[
|
|
LineComment(
|
|
" 3",
|
|
),
|
|
],
|
|
),
|
|
),
|
|
[
|
|
LineComment(
|
|
" 4",
|
|
),
|
|
],
|
|
)
|