(self, n: ast3.AsyncFor)
| 1310 | |
| 1311 | # AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) |
| 1312 | def visit_AsyncFor(self, n: ast3.AsyncFor) -> ForStmt: |
| 1313 | target_type = self.translate_type_comment(n, n.type_comment) |
| 1314 | node = ForStmt( |
| 1315 | self.visit(n.target), |
| 1316 | self.visit(n.iter), |
| 1317 | self.as_required_block(n.body), |
| 1318 | self.as_block(n.orelse), |
| 1319 | target_type, |
| 1320 | ) |
| 1321 | node.is_async = True |
| 1322 | return self.set_line(node, n) |
| 1323 | |
| 1324 | # While(expr test, stmt* body, stmt* orelse) |
| 1325 | def visit_While(self, n: ast3.While) -> WhileStmt: |
nothing calls this directly
no test coverage detected