Check if `ident` is equal to `__debug__` and emit a [`SemanticSyntaxErrorKind::WriteToDebug`] if so.
(ident: &ast::Identifier, ctx: &Ctx)
| 690 | /// Check if `ident` is equal to `__debug__` and emit a |
| 691 | /// [`SemanticSyntaxErrorKind::WriteToDebug`] if so. |
| 692 | fn check_identifier<Ctx: SemanticSyntaxContext>(ident: &ast::Identifier, ctx: &Ctx) { |
| 693 | if ident.id == "__debug__" { |
| 694 | Self::add_error( |
| 695 | ctx, |
| 696 | SemanticSyntaxErrorKind::WriteToDebug(WriteToDebugKind::Store), |
| 697 | ident.range, |
| 698 | ); |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | fn duplicate_type_parameter_name<Ctx: SemanticSyntaxContext>( |
| 703 | type_params: &ast::TypeParams, |
nothing calls this directly
no outgoing calls
no test coverage detected