aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/ast/generated.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-27 20:03:19 +0100
committerAleksey Kladov <[email protected]>2018-08-27 20:03:19 +0100
commit57518153147ad53639f16cc940d219dc582c550a (patch)
tree5c1708cf8ea4e2344c8dfc96af82343be0b0271c /crates/libsyntax2/src/ast/generated.rs
parentb79c8b6d8a3b38c94de992a54ffb9055c1ad6f31 (diff)
Add runnables
Diffstat (limited to 'crates/libsyntax2/src/ast/generated.rs')
-rw-r--r--crates/libsyntax2/src/ast/generated.rs8
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
541impl<'a> ForExpr<'a> { 541impl<'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 }