swc-project/swc · error
unimplemented
Error message
unimplemented
What it means
Error "unimplemented" thrown in swc-project/swc.
Source
Thrown at crates/swc_estree_compat/src/babelify/typescript.rs:216
}
}
}
impl Babelify for TsTypeElement {
type Output = TSTypeElement;
fn babelify(self, ctx: &Context) -> Self::Output {
match self {
TsTypeElement::TsCallSignatureDecl(t) => {
TSTypeElement::CallSignatureDecl(t.babelify(ctx))
}
TsTypeElement::TsConstructSignatureDecl(t) => {
TSTypeElement::ConstructSignatureDecl(t.babelify(ctx))
}
TsTypeElement::TsPropertySignature(t) => TSTypeElement::PropSignature(t.babelify(ctx)),
TsTypeElement::TsMethodSignature(t) => TSTypeElement::MethodSignature(t.babelify(ctx)),
TsTypeElement::TsIndexSignature(t) => TSTypeElement::IndexSignature(t.babelify(ctx)),
TsTypeElement::TsGetterSignature(_) => panic!("unimplemented"),
TsTypeElement::TsSetterSignature(_) => panic!("unimplemented"),
#[cfg(swc_ast_unknown)]
_ => panic!("unable to access unknown nodes"),
}
}
}
impl Babelify for TsCallSignatureDecl {
type Output = TSCallSignatureDeclaration;
fn babelify(self, ctx: &Context) -> Self::Output {
TSCallSignatureDeclaration {
base: ctx.base(self.span),
type_parameters: self.type_params.map(|t| t.babelify(ctx)),
parameters: self
.params
.into_iter()
.map(|param| param.babelify(ctx).into())View on GitHub (pinned to d7d7434666)
When it happens
Trigger: Thrown at crates/swc_estree_compat/src/babelify/typescript.rs:216 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of swc-project/swc@d7d7434666 (2026-08-16).
Data as JSON: /api/errors/91004026c26d38ba.
Report an issue: GitHub.