mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Make sure to add parens if a PncApply dbg stmt becomes a space-separated Apply
This commit is contained in:
parent
0438c17503
commit
8deca25c5e
5 changed files with 45 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
dbg (a / a)
|
||||
d
|
|
@ -0,0 +1,32 @@
|
|||
@0-8 SpaceAfter(
|
||||
DbgStmt {
|
||||
first: @4-7 BinOps(
|
||||
[
|
||||
(
|
||||
@4-5 Var {
|
||||
module_name: "",
|
||||
ident: "a",
|
||||
},
|
||||
@5-6 Slash,
|
||||
),
|
||||
],
|
||||
@6-7 Var {
|
||||
module_name: "",
|
||||
ident: "a",
|
||||
},
|
||||
),
|
||||
extra_args: [],
|
||||
continuation: @9-10 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "d",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
dbg(a/a)
|
||||
d
|
|
@ -397,6 +397,7 @@ mod test_snapshots {
|
|||
pass/dbg_double_newline.expr,
|
||||
pass/dbg_extra_parens.expr,
|
||||
pass/dbg_newline_apply.expr,
|
||||
pass/dbg_pnc_a_over_a.expr,
|
||||
pass/dbg_stmt.expr,
|
||||
pass/dbg_stmt_in_parens.expr,
|
||||
pass/dbg_stmt_multiline.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue