support ref-patterns

This commit is contained in:
Aleksey Kladov 2019-01-13 13:34:57 +03:00
parent 40686722ba
commit 8e554ea5fa
5 changed files with 46 additions and 11 deletions

View file

@ -2456,7 +2456,11 @@ impl AstNode for RefPat {
}
impl RefPat {}
impl RefPat {
pub fn pat(&self) -> Option<&Pat> {
super::child_opt(self)
}
}
// ReferenceType
#[derive(Debug, PartialEq, Eq, Hash)]