mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
Fully normalize in expr record-like things, during formatting
This commit is contained in:
parent
f5cd0568dd
commit
17849ca556
6 changed files with 169 additions and 5 deletions
|
|
@ -0,0 +1,6 @@
|
|||
0 {
|
||||
l,
|
||||
xt,
|
||||
l: se,
|
||||
#
|
||||
}
|
||||
|
|
@ -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,
|
||||
],
|
||||
)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
0{l,xt,l:(se#
|
||||
)}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
i? p,
|
||||
i
|
||||
? p,
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue