diff --git a/crates/swc_ecma_ast/src/class.rs b/crates/swc_ecma_ast/src/class.rs index e7aa610a2aca..2d74c70a898b 100644 --- a/crates/swc_ecma_ast/src/class.rs +++ b/crates/swc_ecma_ast/src/class.rs @@ -64,16 +64,13 @@ impl Take for Class { pub struct ContentTagMember { pub span: Span, - #[cfg_attr(feature = "serde-impl", serde(flatten))] - #[span] + #[cfg_attr(feature = "serde-impl", serde())] pub opening: Box, - #[cfg_attr(feature = "serde-impl", serde(flatten))] - #[span] + #[cfg_attr(feature = "serde-impl", serde())] pub contents: Box, - #[cfg_attr(feature = "serde-impl", serde(flatten))] - #[span] + #[cfg_attr(feature = "serde-impl", serde())] pub closing: Box, } diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs index c0f0ceb48c35..6a00a2e23d2d 100644 --- a/crates/swc_ecma_ast/src/expr.rs +++ b/crates/swc_ecma_ast/src/expr.rs @@ -527,16 +527,13 @@ pub struct FnExpr { pub struct ContentTagExpression { pub span: Span, - #[cfg_attr(feature = "serde-impl", serde(flatten))] - #[span] + #[cfg_attr(feature = "serde-impl", serde())] pub opening: Box, - #[cfg_attr(feature = "serde-impl", serde(flatten))] - #[span] + #[cfg_attr(feature = "serde-impl", serde())] pub contents: Box, - #[cfg_attr(feature = "serde-impl", serde(flatten))] - #[span] + #[cfg_attr(feature = "serde-impl", serde())] pub closing: Box, }