Add runnables

This commit is contained in:
Aleksey Kladov 2018-08-27 22:03:19 +03:00
parent b79c8b6d8a
commit 5751815314
7 changed files with 115 additions and 2 deletions

View file

@ -539,6 +539,14 @@ impl<'a> AstNode<'a> for ForExpr<'a> {
}
impl<'a> ForExpr<'a> {
pub fn pat(self) -> Option<Pat<'a>> {
super::child_opt(self)
}
pub fn iterable(self) -> Option<Expr<'a>> {
super::child_opt(self)
}
pub fn body(self) -> Option<Block<'a>> {
super::child_opt(self)
}