{"record":{"id":"ff5ab42bb9d8d6bf","repo":"swc-project/swc","slug":"swcify","errorCode":null,"errorMessage":"swcify: {:?}","messagePattern":"swcify: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/swc_estree_compat/src/swcify/stmt.rs","lineNumber":94,"sourceCode":"            Statement::While(v) => v.swcify(ctx).into(),\n            Statement::With(v) => v.swcify(ctx).into(),\n            Statement::ClassDecl(v) => v.swcify(ctx).into(),\n            Statement::ExportAllDecl(v) => ModuleItem::ModuleDecl(v.swcify(ctx).into()),\n            Statement::ExportDefaultDecl(v) => ModuleItem::ModuleDecl(v.swcify(ctx)),\n            Statement::ExportNamedDecl(v) => ModuleItem::ModuleDecl(v.swcify(ctx).into()),\n            Statement::ForOf(v) => v.swcify(ctx).into(),\n            Statement::ImportDecl(v) => ModuleItem::ModuleDecl(v.swcify(ctx).into()),\n            Statement::DeclClass(v) => v.swcify(ctx).into(),\n            Statement::DeclFunc(v) => v.swcify(ctx).into(),\n            Statement::DeclInterface(v) => v.swcify(ctx).into(),\n            Statement::DeclModule(v) => v.swcify(ctx).into(),\n            Statement::DeclareModuleExports(v) => ModuleItem::ModuleDecl(v.swcify(ctx).into()),\n            Statement::DeclTypeAlias(v) => v.swcify(ctx).into(),\n            Statement::DeclVar(v) => v.swcify(ctx).into(),\n            Statement::DeclExportDeclaration(v) => ModuleItem::ModuleDecl(v.swcify(ctx).into()),\n            Statement::DeclExportAllDeclaration(v) => ModuleItem::ModuleDecl(v.swcify(ctx).into()),\n            _ => {\n                todo!(\"swcify: {:?}\", self)\n            }\n        }\n    }\n}\n\nimpl Swcify for BreakStatement {\n    type Output = BreakStmt;\n\n    fn swcify(self, ctx: &Context) -> Self::Output {\n        BreakStmt {\n            span: ctx.span(&self.base),\n            label: self.label.swcify(ctx).map(|v| v.into()),\n        }\n    }\n}\n\nimpl Swcify for ContinueStatement {\n    type Output = ContinueStmt;","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_estree_compat/src/swcify/stmt.rs#L76-L112","documentation":"A catch-all panic in the Statement-to-ModuleItem swcify conversion (swcify/stmt.rs:94). Each Babel Statement variant is mapped explicitly; the trailing arm fires when a Statement arrives whose variant has no explicit arm in this match — i.e. a statement kind the swcify layer has not implemented or does not expect. The debug-formatted statement ({:?}) names the exact unmapped variant, marking a conversion-completeness gap.","triggerScenarios":"Thrown at crates/swc_estree_compat/src/swcify/stmt.rs:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Look at the {:?} output to identify the Statement variant, then add its swcify arm","Reject the Babel input earlier if that statement kind is unsupported in swc's AST","Update swc_estree_ast/swc_ecma_ast if the missing kind requires new node support"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}