{"record":{"id":"91004026c26d38ba","repo":"swc-project/swc","slug":"unimplemented","errorCode":null,"errorMessage":"unimplemented","messagePattern":"unimplemented","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/swc_estree_compat/src/babelify/typescript.rs","lineNumber":216,"sourceCode":"        }\n    }\n}\n\nimpl Babelify for TsTypeElement {\n    type Output = TSTypeElement;\n\n    fn babelify(self, ctx: &Context) -> Self::Output {\n        match self {\n            TsTypeElement::TsCallSignatureDecl(t) => {\n                TSTypeElement::CallSignatureDecl(t.babelify(ctx))\n            }\n            TsTypeElement::TsConstructSignatureDecl(t) => {\n                TSTypeElement::ConstructSignatureDecl(t.babelify(ctx))\n            }\n            TsTypeElement::TsPropertySignature(t) => TSTypeElement::PropSignature(t.babelify(ctx)),\n            TsTypeElement::TsMethodSignature(t) => TSTypeElement::MethodSignature(t.babelify(ctx)),\n            TsTypeElement::TsIndexSignature(t) => TSTypeElement::IndexSignature(t.babelify(ctx)),\n            TsTypeElement::TsGetterSignature(_) => panic!(\"unimplemented\"),\n            TsTypeElement::TsSetterSignature(_) => panic!(\"unimplemented\"),\n            #[cfg(swc_ast_unknown)]\n            _ => panic!(\"unable to access unknown nodes\"),\n        }\n    }\n}\n\nimpl Babelify for TsCallSignatureDecl {\n    type Output = TSCallSignatureDeclaration;\n\n    fn babelify(self, ctx: &Context) -> Self::Output {\n        TSCallSignatureDeclaration {\n            base: ctx.base(self.span),\n            type_parameters: self.type_params.map(|t| t.babelify(ctx)),\n            parameters: self\n                .params\n                .into_iter()\n                .map(|param| param.babelify(ctx).into())","sourceCodeStart":198,"sourceCodeEnd":234,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_estree_compat/src/babelify/typescript.rs#L198-L234","documentation":"An `unimplemented!()` marker inside `Babelify for TsTypeElement` (typescript.rs:216). It fires when a TsTypeElement variant being babelified has no corresponding arm in the match, i.e. that specific TypeScript type member (for example an index signature or a rarely used variant) has not yet been mapped to its ESTree TSTypeElement counterpart. This is a completeness gap in the babelify conversion table, not a user input error.","triggerScenarios":"Thrown at crates/swc_estree_compat/src/babelify/typescript.rs:216 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Identify the exact TsTypeElement variant that reached the unimplemented arm (e.g. by logging it before the panic) and add a babelify arm mapping it to the matching TSTypeElement output","Update swc_estree_ast to expose the missing node kind if the ESTree side lacks it","As a stopgap, skip or drop the unsupported member when it cannot affect downstream output, instead of aborting"],"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"}