Admit tag destructuring in definitions

This commit is contained in:
ayazhafiz 2021-12-30 19:37:58 -06:00
parent 6a38a2948f
commit 0c81302d29
5 changed files with 46 additions and 1 deletions

View file

@ -791,6 +791,10 @@ impl<'a> Expr<'a> {
value: self,
}
}
pub fn is_tag(&self) -> bool {
matches!(self, Expr::GlobalTag(_) | Expr::PrivateTag(_))
}
}
macro_rules! impl_extract_spaces {