Add gen blocks to ast and do some broken ast lowering
This commit is contained in:
parent
14423080f1
commit
621494382d
21 changed files with 131 additions and 56 deletions
|
@ -445,8 +445,8 @@ impl<'a> State<'a> {
|
|||
self.ibox(0);
|
||||
self.print_block_with_attrs(blk, attrs);
|
||||
}
|
||||
ast::ExprKind::Async(capture_clause, blk) => {
|
||||
self.word_nbsp("async");
|
||||
ast::ExprKind::Gen(capture_clause, blk, kind) => {
|
||||
self.word_nbsp(kind.modifier());
|
||||
self.print_capture_clause(*capture_clause);
|
||||
// cbox/ibox in analogy to the `ExprKind::Block` arm above
|
||||
self.cbox(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue