roc/crates/compiler/test_syntax/tests/snapshots/pass/mixed_docs.expr.result-ast
Joshua Warner b4fa7294c7
Extend test_syntax to check that canonicalization doesn't panic on the input
Importantly, this would have caught the issue discovered in #7279, prior to that landing on main.
2024-12-06 17:13:10 -08:00

58 lines
1.4 KiB
Text

@113-122 SpaceBefore(
SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@113-118,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
space_after: [
Slice<roc_parse::ast::CommentOrNewline> { 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",
),
],
)