Flesh out expr_lift_spaces, in particular handling DbgStmt properly

This commit is contained in:
Joshua Warner 2024-12-02 19:18:59 -08:00
parent 5c387857ff
commit fc74b67d86
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 136 additions and 1 deletions

View file

@ -0,0 +1,31 @@
SpaceAfter(
DbgStmt {
first: @4-5 Var {
module_name: "",
ident: "g",
},
extra_args: [],
continuation: @6-12 SpaceBefore(
ParensAround(
ParensAround(
SpaceAfter(
Tag(
"L",
),
[
Newline,
],
),
),
),
[
Newline,
],
),
},
[
LineComment(
"",
),
],
)

View file

@ -368,6 +368,7 @@ mod test_snapshots {
pass/dbg_stmt_in_parens.expr,
pass/dbg_stmt_multiline.expr,
pass/dbg_stmt_two_exprs.expr,
pass/dbg_then_double_parens_cont.expr,
pass/def_bang.expr,
pass/def_multistring_apply.expr,
pass/defs_suffixed_middle_extra_indents.moduledefs,