Support parsing opaque destructures as first item in nested body

Closes #3198
This commit is contained in:
Ayaz Hafiz 2022-07-22 16:35:02 -04:00
parent 53e7a41f27
commit b04764bdd6
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 81 additions and 1 deletions

View file

@ -1045,6 +1045,10 @@ impl<'a> Expr<'a> {
pub fn is_tag(&self) -> bool {
matches!(self, Expr::Tag(_))
}
pub fn is_opaque(&self) -> bool {
matches!(self, Expr::OpaqueRef(_))
}
}
macro_rules! impl_extract_spaces {