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

61 lines
1.3 KiB
Text

SpaceBefore(
SpaceAfter(
Defs(
Defs {
tags: [
Index(2147483648),
],
regions: [
@48-53,
],
space_before: [
Slice(start = 0, length = 0),
],
space_after: [
Slice(start = 0, length = 0),
],
spaces: [],
type_defs: [],
value_defs: [
Body(
@48-49 Identifier {
ident: "x",
},
@52-53 Num(
"5",
),
),
],
},
@55-57 SpaceBefore(
Num(
"42",
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
[
LineComment(
"######",
),
LineComment(
"## not docs!",
),
DocComment(
"actually docs",
),
DocComment(
"",
),
LineComment(
"#####",
),
],
)