Add missing indent call

This commit is contained in:
Joshua Warner 2024-12-16 21:15:44 -08:00
parent 7d60cc8601
commit 249125297e
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,6 @@
(
i :
a #
where w implements I
e
)

View file

@ -0,0 +1,65 @@
@0-29 SpaceAfter(
ParensAround(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@1-26,
],
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(
@1-2 Identifier {
ident: "i",
},
@3-26 Where(
@3-4 SpaceAfter(
BoundVariable(
"a",
),
[
LineComment(
"",
),
],
),
[
@13-26 ImplementsClause {
var: @13-14 "w",
abilities: [
@25-26 Apply(
"",
"I",
[],
),
],
},
],
),
),
],
},
@27-28 SpaceBefore(
Var {
module_name: "",
ident: "e",
},
[
Newline,
],
),
),
),
[
Newline,
],
)

View file

@ -0,0 +1,3 @@
(i:a#
wherew implementsI
e)

View file

@ -744,6 +744,7 @@ mod test_snapshots {
pass/when_with_records.expr,
pass/when_with_tuple_in_record.expr,
pass/when_with_tuples.expr,
pass/where_and_implements_lookalikes.expr,
pass/where_clause_function.expr,
pass/where_clause_multiple_bound_abilities.expr,
pass/where_clause_multiple_has.expr,