diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-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)] |