mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add missing indent call
This commit is contained in:
parent
4a19926425
commit
01dda78271
5 changed files with 64 additions and 0 deletions
|
@ -522,6 +522,7 @@ pub fn pattern_fmt_apply(
|
||||||
ident: "implements"
|
ident: "implements"
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
buf.indent(indent_more);
|
||||||
buf.push_str("(implements)");
|
buf.push_str("(implements)");
|
||||||
} else {
|
} else {
|
||||||
fmt_pattern_only(&arg.item, buf, parens, indent_more, arg.item.is_multiline());
|
fmt_pattern_only(&arg.item, buf, parens, indent_more, arg.item.is_multiline());
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
s #
|
||||||
|
(implements) : s
|
||||||
|
s
|
|
@ -0,0 +1,56 @@
|
||||||
|
@0-18 SpaceAfter(
|
||||||
|
Defs(
|
||||||
|
Defs {
|
||||||
|
tags: [
|
||||||
|
EitherIndex(2147483648),
|
||||||
|
],
|
||||||
|
regions: [
|
||||||
|
@0-16,
|
||||||
|
],
|
||||||
|
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: [
|
||||||
|
Annotation(
|
||||||
|
@0-1 Apply(
|
||||||
|
@0-1 Identifier {
|
||||||
|
ident: "s",
|
||||||
|
},
|
||||||
|
[
|
||||||
|
@4-14 SpaceBefore(
|
||||||
|
Identifier {
|
||||||
|
ident: "implements",
|
||||||
|
},
|
||||||
|
[
|
||||||
|
LineComment(
|
||||||
|
"",
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
@15-16 BoundVariable(
|
||||||
|
"s",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
},
|
||||||
|
@17-18 SpaceBefore(
|
||||||
|
Var {
|
||||||
|
module_name: "",
|
||||||
|
ident: "s",
|
||||||
|
},
|
||||||
|
[
|
||||||
|
Newline,
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
[
|
||||||
|
Newline,
|
||||||
|
],
|
||||||
|
)
|
|
@ -0,0 +1,3 @@
|
||||||
|
s#
|
||||||
|
implements:s
|
||||||
|
s
|
|
@ -439,6 +439,7 @@ mod test_snapshots {
|
||||||
pass/if_def.expr,
|
pass/if_def.expr,
|
||||||
pass/if_in_record_field_opt_pat.expr,
|
pass/if_in_record_field_opt_pat.expr,
|
||||||
pass/if_newline_then_negate_else_recordupdater.expr,
|
pass/if_newline_then_negate_else_recordupdater.expr,
|
||||||
|
pass/implements_in_pat_after_comment.expr,
|
||||||
pass/implements_newline_in_fn_ty.expr,
|
pass/implements_newline_in_fn_ty.expr,
|
||||||
pass/implements_newlines_comments.expr,
|
pass/implements_newlines_comments.expr,
|
||||||
pass/implements_not_keyword.expr,
|
pass/implements_not_keyword.expr,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue