mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Change parsing of struct field patterns
This commit is contained in:
parent
bcbfa2cc11
commit
fa43ef30f4
5 changed files with 46 additions and 40 deletions
|
@ -910,7 +910,11 @@ impl AstNode for FieldPatList {
|
|||
|
||||
|
||||
impl FieldPatList {
|
||||
pub fn pats(&self) -> impl Iterator<Item = &FieldPat> {
|
||||
pub fn field_pats(&self) -> impl Iterator<Item = &FieldPat> {
|
||||
super::children(self)
|
||||
}
|
||||
|
||||
pub fn bind_pats(&self) -> impl Iterator<Item = &BindPat> {
|
||||
super::children(self)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue