(expr: &Expr, ctx: &Ctx)
| 1286 | } |
| 1287 | |
| 1288 | fn check_class_body_expr<Ctx: SemanticSyntaxContext>(expr: &Expr, ctx: &Ctx) { |
| 1289 | if !ctx.in_class_body_comprehension() { |
| 1290 | return; |
| 1291 | } |
| 1292 | |
| 1293 | let mut visitor = ClassBodyNamedExpressionVisitor::default(); |
| 1294 | visitor.visit_expr(expr); |
| 1295 | for range in visitor.ranges { |
| 1296 | Self::add_error( |
| 1297 | ctx, |
| 1298 | SemanticSyntaxErrorKind::NamedExpressionInClassBodyComprehension, |
| 1299 | range, |
| 1300 | ); |
| 1301 | } |
| 1302 | } |
| 1303 | |
| 1304 | fn async_comprehension_in_sync_comprehension<Ctx: SemanticSyntaxContext>( |
| 1305 | ctx: &Ctx, |
nothing calls this directly
no test coverage detected