mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Add initial (flawed) implementation of binding annotations
This commit is contained in:
parent
9433a108cf
commit
d48d5b8b6c
7 changed files with 97 additions and 5 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue