Fix pipe closure after expr

This commit is contained in:
Joshua Warner 2025-01-18 19:40:52 -08:00
parent d42af0b763
commit 300412a4da
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,47 @@
@0-7 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-1,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
space_after: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
spaces: [],
type_defs: [],
value_defs: [
Stmt(
@0-1 Var {
module_name: "",
ident: "b",
},
),
],
},
@2-7 SpaceBefore(
Closure(
[
@3-4 Identifier {
ident: "e",
},
],
@6-7 Var {
module_name: "",
ident: "s",
},
),
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -351,6 +351,7 @@ mod test_snapshots {
pass/arg_pattern_as.expr,
pass/as_in_func_type_args.expr,
pass/assign_parens_item_newline_comment.expr,
pass/backslash_closure_last_expr.expr,
pass/bang_newline_double_accessor.expr,
pass/bangs_and_tuple_accessors.expr,
pass/basic_apply.expr,