diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-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 251d53bdf..ead0f1293 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -180,7 +180,11 @@ impl AstNode for BindPat { | |||
180 | 180 | ||
181 | 181 | ||
182 | impl ast::NameOwner for BindPat {} | 182 | impl ast::NameOwner for BindPat {} |
183 | impl BindPat {} | 183 | impl BindPat { |
184 | pub fn pat(&self) -> Option<&Pat> { | ||
185 | super::child_opt(self) | ||
186 | } | ||
187 | } | ||
184 | 188 | ||
185 | // Block | 189 | // Block |
186 | #[derive(Debug, PartialEq, Eq, Hash)] | 190 | #[derive(Debug, PartialEq, Eq, Hash)] |