{"record":{"id":"58e8fdce493d6534","repo":"swc-project/swc","slug":"flow-type-cast","errorCode":null,"errorMessage":"flow type cast","messagePattern":"flow type cast","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/swc_estree_compat/src/swcify/expr.rs","lineNumber":842,"sourceCode":"        OptChainExpr {\n            span: ctx.span(&self.base),\n            optional: self.optional,\n            base: Box::new(OptChainBase::Call(OptCall {\n                span: ctx.span(&self.base),\n                callee: self.callee.swcify(ctx),\n                args: self.arguments.swcify(ctx).into_iter().flatten().collect(),\n                type_args: self.type_parameters.swcify(ctx).map(From::from),\n                ..Default::default()\n            })),\n        }\n    }\n}\n\nimpl Swcify for TypeCastExpression {\n    type Output = Never;\n\n    fn swcify(self, _: &Context) -> Self::Output {\n        unimplemented!(\"flow type cast\")\n    }\n}\n\nimpl Swcify for swc_estree_ast::JSXElement {\n    type Output = swc_ecma_ast::JSXElement;\n\n    fn swcify(self, ctx: &Context) -> Self::Output {\n        swc_ecma_ast::JSXElement {\n            span: ctx.span(&self.base),\n            opening: self.opening_element.swcify(ctx),\n            children: self.children.swcify(ctx),\n            closing: self.closing_element.swcify(ctx),\n        }\n    }\n}\n\nimpl Swcify for swc_estree_ast::JSXOpeningElement {\n    type Output = swc_ecma_ast::JSXOpeningElement;","sourceCodeStart":824,"sourceCodeEnd":860,"githubUrl":"https://github.com/swc-project/swc/blob/d7d74346665e36e692aa07e13d4ee3ee692ee35c/crates/swc_estree_compat/src/swcify/expr.rs#L824-L860","documentation":"Error \"flow type cast\" thrown in swc-project/swc.","triggerScenarios":"Thrown at crates/swc_estree_compat/src/swcify/expr.rs:842 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d7d74346665e36e692aa07e13d4ee3ee692ee35c","analyzedAt":"2026-08-16T12:41:13.160Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}