diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-19 00:02:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:37:26 +0000 |
commit | fa43ef30f4f96fc8e4ea1f9c4492bcb07b3335ca (patch) | |
tree | b1c3d3d2e543e8e77c13760119ee7f446e1a858a /crates/ra_syntax/src/ast/generated.rs | |
parent | bcbfa2cc1146dfa23acb3e61f7ec053733a8fac1 (diff) |
Change parsing of struct field patterns
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 23a573d74..271040bf4 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -910,7 +910,11 @@ impl AstNode for FieldPatList { | |||
910 | 910 | ||
911 | 911 | ||
912 | impl FieldPatList { | 912 | impl FieldPatList { |
913 | pub fn pats(&self) -> impl Iterator<Item = &FieldPat> { | 913 | pub fn field_pats(&self) -> impl Iterator<Item = &FieldPat> { |
914 | super::children(self) | ||
915 | } | ||
916 | |||
917 | pub fn bind_pats(&self) -> impl Iterator<Item = &BindPat> { | ||
914 | super::children(self) | 918 | super::children(self) |
915 | } | 919 | } |
916 | } | 920 | } |