diff options
author | Aleksey Kladov <[email protected]> | 2019-01-13 10:34:57 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-13 10:36:06 +0000 |
commit | 8e554ea5faa1158e084462162d5e1932db5c81c2 (patch) | |
tree | a24233c5a007f3d089f4fd369a0c5e8f92e0af00 /crates/ra_syntax/src/ast/generated.rs | |
parent | 40686722ba0762c4af396da120331710edfeabe8 (diff) |
support ref-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 1f6055115..f745cb1cb 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -2456,7 +2456,11 @@ impl AstNode for RefPat { | |||
2456 | } | 2456 | } |
2457 | 2457 | ||
2458 | 2458 | ||
2459 | impl RefPat {} | 2459 | impl RefPat { |
2460 | pub fn pat(&self) -> Option<&Pat> { | ||
2461 | super::child_opt(self) | ||
2462 | } | ||
2463 | } | ||
2460 | 2464 | ||
2461 | // ReferenceType | 2465 | // ReferenceType |
2462 | #[derive(Debug, PartialEq, Eq, Hash)] | 2466 | #[derive(Debug, PartialEq, Eq, Hash)] |