Change parsing of struct field patterns

This commit is contained in:
Marcus Klaas de Vries 2019-01-19 01:02:38 +01:00 committed by Aleksey Kladov
parent bcbfa2cc11
commit fa43ef30f4
5 changed files with 46 additions and 40 deletions

View file

@ -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)
}
}