(expr: &Expr, ctx: &Ctx)
| 1278 | } |
| 1279 | |
| 1280 | fn check_class_body_expr<Ctx: SemanticSyntaxContext>(expr: &Expr, ctx: &Ctx) { |
| 1281 | if !ctx.in_class_body_comprehension() { |
| 1282 | return; |
| 1283 | } |
| 1284 | |
| 1285 | let mut visitor = ClassBodyNamedExpressionVisitor::default(); |
| 1286 | visitor.visit_expr(expr); |
| 1287 | for range in visitor.ranges { |
| 1288 | Self::add_error( |
| 1289 | ctx, |
| 1290 | SemanticSyntaxErrorKind::NamedExpressionInClassBodyComprehension, |
| 1291 | range, |
| 1292 | ); |
| 1293 | } |
| 1294 | } |
| 1295 | |
| 1296 | fn async_comprehension_in_sync_comprehension<Ctx: SemanticSyntaxContext>( |
| 1297 | ctx: &Ctx, |
nothing calls this directly
no test coverage detected