diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-17 12:08:18 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:37:26 +0000 |
commit | d48d5b8b6ca59b462b3a84dad9868daff2eddb6d (patch) | |
tree | 20f1936ccf07abea463ae81b36132efd76ad4f71 /crates/ra_syntax/src/ast | |
parent | 9433a108cfcf3a9c7de9299d6641a5abf9031a17 (diff) |
Add initial (flawed) implementation of binding annotations
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)] |