(expr: &Expr, ctx: &Ctx)
| 1185 | } |
| 1186 | |
| 1187 | fn check_class_body_expr<Ctx: SemanticSyntaxContext>(expr: &Expr, ctx: &Ctx) { |
| 1188 | if !ctx.in_class_body_comprehension() { |
| 1189 | return; |
| 1190 | } |
| 1191 | |
| 1192 | let mut visitor = ClassBodyNamedExpressionVisitor::default(); |
| 1193 | visitor.visit_expr(expr); |
| 1194 | for range in visitor.ranges { |
| 1195 | Self::add_error( |
| 1196 | ctx, |
| 1197 | SemanticSyntaxErrorKind::NamedExpressionInClassBodyComprehension, |
| 1198 | range, |
| 1199 | ); |
| 1200 | } |
| 1201 | } |
| 1202 | |
| 1203 | fn async_comprehension_in_sync_comprehension<Ctx: SemanticSyntaxContext>( |
| 1204 | ctx: &Ctx, |
nothing calls this directly
no test coverage detected