1
Fork 0

Add gen blocks to ast and do some broken ast lowering

This commit is contained in:
Oli Scherer 2023-10-20 21:26:57 +00:00
parent 14423080f1
commit 621494382d
21 changed files with 131 additions and 56 deletions

View file

@ -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);