mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-26 19:16:25 +00:00
Format all lambdas to new syntax
This commit is contained in:
parent
9d37c906fe
commit
1b43ffa579
70 changed files with 1105 additions and 669 deletions
|
|
@ -2014,7 +2014,7 @@ fn fmt_closure<'a>(
|
|||
use self::Expr::*;
|
||||
|
||||
buf.indent(indent);
|
||||
buf.push('\\');
|
||||
buf.push('|');
|
||||
|
||||
let arguments_are_multiline = loc_patterns
|
||||
.iter()
|
||||
|
|
@ -2062,12 +2062,10 @@ fn fmt_closure<'a>(
|
|||
if arguments_are_multiline {
|
||||
buf.ensure_ends_with_newline();
|
||||
buf.indent(indent);
|
||||
} else {
|
||||
buf.spaces(1);
|
||||
}
|
||||
|
||||
let arrow_line_indent = buf.cur_line_indent();
|
||||
buf.push_str("->");
|
||||
buf.push_str("|");
|
||||
buf.spaces(1);
|
||||
|
||||
let is_multiline = loc_ret.value.is_multiline();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue