diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-15 14:24:04 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:37:25 +0000 |
commit | afaa26636e4391ebacfc09e9c994c11bab58b834 (patch) | |
tree | 79d66f1d2eb70f3092285ab37f1e21c3832ea8b8 /crates/ra_syntax/src/ast/generated.rs | |
parent | 0a82d9cdc975da27e78839e1a8cb873ba99ae64b (diff) |
Add additional pattern variants
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 2d9603d90..2fd146bf1 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -2285,7 +2285,11 @@ impl AstNode for PathPat { | |||
2285 | } | 2285 | } |
2286 | 2286 | ||
2287 | 2287 | ||
2288 | impl PathPat {} | 2288 | impl PathPat { |
2289 | pub fn path(&self) -> Option<&Path> { | ||
2290 | super::child_opt(self) | ||
2291 | } | ||
2292 | } | ||
2289 | 2293 | ||
2290 | // PathSegment | 2294 | // PathSegment |
2291 | #[derive(Debug, PartialEq, Eq, Hash)] | 2295 | #[derive(Debug, PartialEq, Eq, Hash)] |
@@ -3219,7 +3223,11 @@ impl AstNode for TuplePat { | |||
3219 | } | 3223 | } |
3220 | 3224 | ||
3221 | 3225 | ||
3222 | impl TuplePat {} | 3226 | impl TuplePat { |
3227 | pub fn args(&self) -> impl Iterator<Item = &Pat> { | ||
3228 | super::children(self) | ||
3229 | } | ||
3230 | } | ||
3223 | 3231 | ||
3224 | // TupleStructPat | 3232 | // TupleStructPat |
3225 | #[derive(Debug, PartialEq, Eq, Hash)] | 3233 | #[derive(Debug, PartialEq, Eq, Hash)] |