Fully normalize in expr record-like things, during formatting

This commit is contained in:
Joshua Warner 2024-12-12 19:21:04 -08:00
parent f5cd0568dd
commit 17849ca556
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 169 additions and 5 deletions

View file

@ -0,0 +1,40 @@
@0-16 SpaceAfter(
Apply(
@0-1 Num(
"0",
),
[
@1-16 Record(
[
@2-3 LabelOnly(
@2-3 "l",
),
@4-6 LabelOnly(
@4-6 "xt",
),
@7-15 RequiredValue(
@7-8 "l",
[],
@9-15 ParensAround(
SpaceAfter(
Var {
module_name: "",
ident: "se",
},
[
LineComment(
"",
),
],
),
),
),
],
),
],
Space,
),
[
Newline,
],
)

View file

@ -305,6 +305,7 @@ mod test_snapshots {
pass/apply_closure_pizza.expr,
pass/apply_parenthetical_tag_args.expr,
pass/apply_record_ann.expr,
pass/apply_record_parens_newline_field.expr,
pass/apply_tag.expr,
pass/apply_three_args.expr,
pass/apply_tuple_ext_parens_ty.expr,