mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Shrink Collection to make parse_expr_size test pass
This commit is contained in:
parent
1fabc64fdf
commit
9bf1674946
8 changed files with 155 additions and 125 deletions
|
@ -83,7 +83,7 @@ where
|
|||
macro_rules! format_sequence {
|
||||
($buf: expr, $indent:expr, $start:expr, $end:expr, $items:expr, $newline:expr, $t:ident) => {
|
||||
let is_multiline = $items.iter().any(|item| item.value.is_multiline())
|
||||
|| !$items.final_comments.is_empty();
|
||||
|| !$items.final_comments().is_empty();
|
||||
|
||||
if is_multiline {
|
||||
let braces_indent = $indent + INDENT;
|
||||
|
@ -140,7 +140,7 @@ macro_rules! format_sequence {
|
|||
}
|
||||
fmt_comments_only(
|
||||
$buf,
|
||||
$items.final_comments.iter(),
|
||||
$items.final_comments().iter(),
|
||||
NewlineAt::Top,
|
||||
item_indent,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue