mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
remove Nested from pattern
This commit is contained in:
parent
197835b6ed
commit
2827af7e59
5 changed files with 6 additions and 23 deletions
|
@ -22,8 +22,6 @@ impl<'a> Formattable<'a> for Pattern<'a> {
|
|||
spaces.iter().any(|s| s.is_comment())
|
||||
}
|
||||
|
||||
Pattern::Nested(nested_pat) => nested_pat.is_multiline(),
|
||||
|
||||
Pattern::RecordDestructure(fields) => fields.iter().any(|f| f.is_multiline()),
|
||||
Pattern::RequiredField(_, subpattern) => subpattern.is_multiline(),
|
||||
|
||||
|
@ -153,10 +151,6 @@ impl<'a> Formattable<'a> for Pattern<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
Nested(sub_pattern) => {
|
||||
sub_pattern.format_with_options(buf, parens, newlines, indent);
|
||||
}
|
||||
|
||||
// Malformed
|
||||
Malformed(string) | MalformedIdent(string, _) => buf.push_str(string),
|
||||
QualifiedIdentifier { module_name, ident } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue