mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
support ref-patterns
This commit is contained in:
parent
40686722ba
commit
8e554ea5fa
5 changed files with 46 additions and 11 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue