Change parsing of struct field patterns
This commit is contained in:
committed by
Aleksey Kladov
parent
bcbfa2cc11
commit
fa43ef30f4
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user