fill struct fields diagnostic

This commit is contained in:
Sergey Parilin 2019-04-11 00:00:56 +03:00 committed by Sergey Parilin
parent 32db5884ad
commit 26ed925685
9 changed files with 269 additions and 18 deletions

View file

@ -2371,6 +2371,10 @@ impl NamedFieldList {
pub fn fields(&self) -> impl Iterator<Item = &NamedField> {
super::children(self)
}
pub fn spread(&self) -> Option<&Expr> {
super::child_opt(self)
}
}
// NeverType
@ -3564,10 +3568,6 @@ impl StructLit {
pub fn named_field_list(&self) -> Option<&NamedFieldList> {
super::child_opt(self)
}
pub fn spread(&self) -> Option<&Expr> {
super::child_opt(self)
}
}
// StructPat