mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Support parsing opaque destructures as first item in nested body
Closes #3198
This commit is contained in:
parent
53e7a41f27
commit
b04764bdd6
5 changed files with 81 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue