diff options
author | Aleksey Kladov <[email protected]> | 2018-08-27 20:03:19 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-27 20:03:19 +0100 |
commit | 57518153147ad53639f16cc940d219dc582c550a (patch) | |
tree | 5c1708cf8ea4e2344c8dfc96af82343be0b0271c /crates/libsyntax2/src/ast | |
parent | b79c8b6d8a3b38c94de992a54ffb9055c1ad6f31 (diff) |
Add runnables
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 | } |