diff options
author | Sergey Parilin <[email protected]> | 2019-04-10 22:00:56 +0100 |
---|---|---|
committer | Sergey Parilin <[email protected]> | 2019-05-06 15:16:11 +0100 |
commit | 26ed92568596ce45ad96c3e2ea5d54099702537f (patch) | |
tree | 29624826736c7287ac7dea635e639f20280d2533 /crates/ra_syntax/src/ast | |
parent | 32db5884ada59c72aa7ab9f88910ef7c8f882e7d (diff) |
fill struct fields diagnostic
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 89d3a35c5..e73fe22e9 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -2371,6 +2371,10 @@ impl NamedFieldList { | |||
2371 | pub fn fields(&self) -> impl Iterator<Item = &NamedField> { | 2371 | pub fn fields(&self) -> impl Iterator<Item = &NamedField> { |
2372 | super::children(self) | 2372 | super::children(self) |
2373 | } | 2373 | } |
2374 | |||
2375 | pub fn spread(&self) -> Option<&Expr> { | ||
2376 | super::child_opt(self) | ||
2377 | } | ||
2374 | } | 2378 | } |
2375 | 2379 | ||
2376 | // NeverType | 2380 | // NeverType |
@@ -3564,10 +3568,6 @@ impl StructLit { | |||
3564 | pub fn named_field_list(&self) -> Option<&NamedFieldList> { | 3568 | pub fn named_field_list(&self) -> Option<&NamedFieldList> { |
3565 | super::child_opt(self) | 3569 | super::child_opt(self) |
3566 | } | 3570 | } |
3567 | |||
3568 | pub fn spread(&self) -> Option<&Expr> { | ||
3569 | super::child_opt(self) | ||
3570 | } | ||
3571 | } | 3571 | } |
3572 | 3572 | ||
3573 | // StructPat | 3573 | // StructPat |