diff options
Diffstat (limited to 'crates/libsyntax2/src/ast')
-rw-r--r-- | crates/libsyntax2/src/ast/generated.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs index 6891e857c..f99d1274a 100644 --- a/crates/libsyntax2/src/ast/generated.rs +++ b/crates/libsyntax2/src/ast/generated.rs | |||
@@ -539,6 +539,14 @@ impl<'a> AstNode<'a> for ForExpr<'a> { | |||
539 | } | 539 | } |
540 | 540 | ||
541 | impl<'a> ForExpr<'a> { | 541 | impl<'a> ForExpr<'a> { |
542 | pub fn pat(self) -> Option<Pat<'a>> { | ||
543 | super::child_opt(self) | ||
544 | } | ||
545 | |||
546 | pub fn iterable(self) -> Option<Expr<'a>> { | ||
547 | super::child_opt(self) | ||
548 | } | ||
549 | |||
542 | pub fn body(self) -> Option<Block<'a>> { | 550 | pub fn body(self) -> Option<Block<'a>> { |
543 | super::child_opt(self) | 551 | super::child_opt(self) |
544 | } | 552 | } |