(expr: &Expr, ctx: &Ctx)
| 1237 | } |
| 1238 | |
| 1239 | fn check_class_body_expr<Ctx: SemanticSyntaxContext>(expr: &Expr, ctx: &Ctx) { |
| 1240 | if !ctx.in_class_body_comprehension() { |
| 1241 | return; |
| 1242 | } |
| 1243 | |
| 1244 | let mut visitor = ClassBodyNamedExpressionVisitor::default(); |
| 1245 | visitor.visit_expr(expr); |
| 1246 | for range in visitor.ranges { |
| 1247 | Self::add_error( |
| 1248 | ctx, |
| 1249 | SemanticSyntaxErrorKind::NamedExpressionInClassBodyComprehension, |
| 1250 | range, |
| 1251 | ); |
| 1252 | } |
| 1253 | } |
| 1254 | |
| 1255 | fn async_comprehension_in_sync_comprehension<Ctx: SemanticSyntaxContext>( |
| 1256 | ctx: &Ctx, |
nothing calls this directly
no test coverage detected