aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/generated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-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 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
182impl ast::NameOwner for BindPat {} 182impl ast::NameOwner for BindPat {}
183impl BindPat {} 183impl 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)]