aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-19 00:02:38 +0000
committerAleksey Kladov <[email protected]>2019-01-19 12:37:26 +0000
commitfa43ef30f4f96fc8e4ea1f9c4492bcb07b3335ca (patch)
treeb1c3d3d2e543e8e77c13760119ee7f446e1a858a /crates/ra_syntax/src/ast
parentbcbfa2cc1146dfa23acb3e61f7ec053733a8fac1 (diff)
Change parsing of struct field patterns
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs6
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
912impl FieldPatList { 912impl 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}