From 26ed92568596ce45ad96c3e2ea5d54099702537f Mon Sep 17 00:00:00 2001 From: Sergey Parilin Date: Thu, 11 Apr 2019 00:00:56 +0300 Subject: fill struct fields diagnostic --- crates/ra_syntax/src/ast/generated.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_syntax/src/ast') 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 { pub fn fields(&self) -> impl Iterator { 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 -- cgit v1.2.3