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

58 lines
1.3 KiB
Text

SpaceBefore(
SpaceAfter(
Defs(
Defs {
tags: [
Index(2147483648),
],
regions: [
@113-118,
],
space_before: [
Slice(start = 0, length = 0),
],
space_after: [
Slice(start = 0, length = 0),
],
spaces: [],
type_defs: [],
value_defs: [
Body(
@113-114 Identifier {
ident: "x",
},
@117-118 Num(
"5",
),
),
],
},
@120-122 SpaceBefore(
Num(
"42",
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
[
LineComment(
"## not docs!",
),
DocComment(
"docs, but with a problem",
),
DocComment(
"(namely that this is a mix of docs and regular comments)",
),
LineComment(
" not docs",
),
],
)