swc-project/swc · error
swcify: {:?}
Error message
swcify: {:?} What it means
Error "swcify: {:?}" thrown in swc-project/swc.
Source
Thrown at crates/swc_estree_compat/src/swcify/class.rs:35
impl Swcify for ClassBody {
type Output = Vec<ClassMember>;
fn swcify(self, ctx: &Context) -> Self::Output {
self.body.swcify(ctx)
}
}
impl Swcify for ClassBodyEl {
type Output = ClassMember;
fn swcify(self, ctx: &Context) -> Self::Output {
match self {
ClassBodyEl::Method(v) => v.swcify(ctx),
ClassBodyEl::PrivateMethod(v) => v.swcify(ctx).into(),
ClassBodyEl::Prop(v) => v.swcify(ctx).into(),
ClassBodyEl::PrivateProp(v) => v.swcify(ctx).into(),
_ => {
unimplemented!("swcify: {:?}", self)
}
}
}
}
impl Swcify for swc_estree_ast::ClassMethod {
type Output = swc_ecma_ast::ClassMember;
fn swcify(self, ctx: &Context) -> Self::Output {
match self.kind.unwrap_or(ClassMethodKind::Method) {
ClassMethodKind::Get | ClassMethodKind::Set | ClassMethodKind::Method => {
let SwcifiedFunctionParams { this_param, params } =
swcify_function_params(self.params, ctx);
swc_ecma_ast::ClassMethod {
span: ctx.span(&self.base),
key: self.key.swcify(ctx),
function: Function {View on GitHub (pinned to d7d7434666)
When it happens
Trigger: Thrown at crates/swc_estree_compat/src/swcify/class.rs:35 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/368c7a671a835e2c.
Report an issue: GitHub.