mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Pattern::Stmt cannot be malformed
This commit is contained in:
parent
a5df0aa1c2
commit
cfa7490b86
1 changed files with 2 additions and 3 deletions
|
@ -1761,7 +1761,8 @@ impl<'a> Malformed for Pattern<'a> {
|
|||
match self {
|
||||
Identifier(_) |
|
||||
Tag(_) |
|
||||
OpaqueRef(_) => false,
|
||||
OpaqueRef(_) |
|
||||
Stmt(_) => false,
|
||||
Apply(func, args) => func.is_malformed() || args.iter().any(|arg| arg.is_malformed()),
|
||||
RecordDestructure(items) => items.iter().any(|item| item.is_malformed()),
|
||||
RequiredField(_, pat) => pat.is_malformed(),
|
||||
|
@ -1784,8 +1785,6 @@ impl<'a> Malformed for Pattern<'a> {
|
|||
Malformed(_) |
|
||||
MalformedIdent(_, _) |
|
||||
QualifiedIdentifier { .. } => true,
|
||||
|
||||
Stmt(_) => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue