Fix as indentation

This commit is contained in:
Joshua Warner 2024-12-14 20:33:24 -08:00
parent 7b9aa59d64
commit f7baa878f2
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 72 additions and 4 deletions

View file

@ -0,0 +1,55 @@
@0-13 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-11,
],
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: [
Annotation(
@0-1 Identifier {
ident: "e",
},
@2-0 As(
@2-3 Apply(
"",
"A",
[],
),
[
LineComment(
"",
),
],
TypeHeader {
name: @10-11 "H",
vars: [],
},
),
),
],
},
@12-13 SpaceBefore(
Var {
module_name: "",
ident: "n",
},
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -298,6 +298,7 @@ mod test_snapshots {
pass/annotated_tag_destructure.expr,
pass/annotated_tuple_destructure.expr,
pass/annotation_apply_newlines.expr,
pass/annotation_comment_before_as.expr,
pass/annotation_comment_before_colon.expr,
pass/annotation_double_as.expr,
pass/annotation_tag_parens_comment.expr,