lift spaces in backpassing (fixes #7364)

This commit is contained in:
Joshua Warner 2024-12-13 19:07:52 -08:00
parent db95ff54cf
commit abde9e86b1
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 65 additions and 2 deletions

View file

@ -0,0 +1,53 @@
@0-16 SpaceAfter(
Backpassing(
[
@0-1 NumLiteral(
"1",
),
@2-7 SpaceAfter(
Apply(
@2-3 Tag(
"C",
),
[
@6-7 SpaceBefore(
SpaceAfter(
NumLiteral(
"0",
),
[
Newline,
],
),
[
LineComment(
"",
),
],
),
],
),
[
LineComment(
"",
),
],
),
],
@13-14 Tag(
"F",
),
@15-16 SpaceBefore(
Var {
module_name: "",
ident: "t",
},
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -317,6 +317,7 @@ mod test_snapshots {
pass/apply_unary_not.expr,
pass/arg_pattern_as.expr,
pass/backpassing_bananza.expr,
pass/backpassing_comment_pattern_fun.expr,
pass/backpassing_in_parens_in_tuple.expr,
pass/bang_newline_double_accessor.expr,
pass/bangs_and_tuple_accessors.expr,