Further relax indentation of implements ability chains

This commit is contained in:
Joshua Warner 2025-01-10 21:10:16 -08:00
parent 7a1b3b8257
commit 0471993428
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
7 changed files with 165 additions and 22 deletions

View file

@ -0,0 +1,5 @@
2 :
r where e
implements
P
u

View file

@ -0,0 +1,71 @@
@0-40 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-38,
],
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 NumLiteral(
"2",
),
@8-38 SpaceBefore(
Where(
@8-9 BoundVariable(
"r",
),
[
@16-38 ImplementsClause {
var: @16-17 SpaceAfter(
"e",
[
Newline,
],
),
abilities: [
@37-38 SpaceBefore(
Apply(
"",
"P",
[],
),
[
Newline,
],
),
],
},
],
),
[
Newline,
],
),
),
],
},
@39-40 SpaceBefore(
Var {
module_name: "",
ident: "u",
},
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -0,0 +1,5 @@
2 :
r where e
implements
P
u

View file

@ -299,6 +299,7 @@ mod test_snapshots {
pass/ann_apply_record_with_newlines.expr,
pass/ann_closed_union.expr,
pass/ann_effectful_fn.expr,
pass/ann_extra_indented_implements.expr,
pass/ann_open_union.expr,
pass/ann_parens_comments.expr,
pass/ann_parens_where_implements_func.expr,