From a74ccdd6b4c3a39e8361c15fa16b83a5cc12c260 Mon Sep 17 00:00:00 2001 From: patrickpircher Date: Wed, 29 Nov 2023 13:00:46 +0100 Subject: [PATCH] do not flatten --- crates/swc_ecma_ast/src/class.rs | 9 +++------ crates/swc_ecma_ast/src/expr.rs | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) 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, }