(&mut self, generators: &[Comprehension])
| 1446 | } |
| 1447 | |
| 1448 | fn unparse_comp(&mut self, generators: &[Comprehension]) { |
| 1449 | for comp in generators { |
| 1450 | self.p(if comp.is_async { |
| 1451 | " async for " |
| 1452 | } else { |
| 1453 | " for " |
| 1454 | }); |
| 1455 | self.unparse_expr(&comp.target, precedence::COMPREHENSION_TARGET); |
| 1456 | self.p(" in "); |
| 1457 | self.unparse_expr(&comp.iter, precedence::COMPREHENSION); |
| 1458 | for cond in &comp.ifs { |
| 1459 | self.p(" if "); |
| 1460 | self.unparse_expr(cond, precedence::COMPREHENSION); |
| 1461 | } |
| 1462 | } |
| 1463 | } |
| 1464 | |
| 1465 | fn unparse_string_literal(&mut self, string_literal: &ast::StringLiteral) { |
| 1466 | let ast::StringLiteral { value, flags, .. } = string_literal; |
no test coverage detected