Add initial (flawed) implementation of binding annotations

This commit is contained in:
Marcus Klaas de Vries 2019-01-17 13:08:18 +01:00 committed by Aleksey Kladov
parent 9433a108cf
commit d48d5b8b6c
7 changed files with 97 additions and 5 deletions

View file

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