WIP try simplification

This commit is contained in:
Luke Boswell 2024-04-08 22:18:45 +10:00
parent 85b76a14b4
commit 8b9e08bd76
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
13 changed files with 734 additions and 551 deletions

View file

@ -31,6 +31,8 @@ impl<'a> Formattable for Expr<'a> {
true
}
MalformedSuffixed(loc_expr) => loc_expr.is_multiline(),
// These expressions never have newlines
Float(..)
| Num(..)
@ -562,6 +564,10 @@ impl<'a> Formattable for Expr<'a> {
buf.indent(indent);
buf.push_str(str)
}
MalformedSuffixed(loc_expr) => {
buf.indent(indent);
loc_expr.format_with_options(buf, parens, newlines, indent);
}
MalformedClosure => {}
PrecedenceConflict { .. } => {}
MultipleRecordBuilders { .. } => {}