@@ -165,15 +165,14 @@ fn create_styled_component<'a>(
165165 SPAN ,
166166 FormalParameterKind :: ArrowFormalParameters ,
167167 oxc_allocator:: Vec :: from_iter_in (
168- vec ! [
169- ast_builder. formal_parameter(
170- SPAN ,
171- oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
172- ast_builder. binding_pattern(
173- ast_builder. binding_pattern_kind_object_pattern(
174- SPAN ,
175- oxc_allocator:: Vec :: from_iter_in(
176- vec![
168+ vec ! [ ast_builder. formal_parameter(
169+ SPAN ,
170+ oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
171+ ast_builder. binding_pattern(
172+ ast_builder. binding_pattern_kind_object_pattern(
173+ SPAN ,
174+ oxc_allocator:: Vec :: from_iter_in(
175+ vec![
177176 ast_builder. binding_property(
178177 SPAN ,
179178 ast_builder. property_key_static_identifier( SPAN , "style" ) ,
@@ -211,28 +210,27 @@ fn create_styled_component<'a>(
211210 false ,
212211 ) ,
213212 ] ,
214- ast_builder. allocator,
215- ) ,
216- Some ( ast_builder. binding_rest_element(
217- SPAN ,
218- ast_builder. binding_pattern(
219- ast_builder. binding_pattern_kind_binding_identifier(
220- SPAN ,
221- ast_builder. atom( "rest" ) ,
222- ) ,
223- None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
224- false ,
225- ) ,
226- ) ) ,
213+ ast_builder. allocator,
227214 ) ,
228- None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
229- false ,
215+ Some ( ast_builder. binding_rest_element(
216+ SPAN ,
217+ ast_builder. binding_pattern(
218+ ast_builder. binding_pattern_kind_binding_identifier(
219+ SPAN ,
220+ ast_builder. atom( "rest" ) ,
221+ ) ,
222+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
223+ false ,
224+ ) ,
225+ ) ) ,
230226 ) ,
231- None ,
232- false ,
227+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
233228 false ,
234229 ) ,
235- ] ,
230+ None ,
231+ false ,
232+ false ,
233+ ) ] ,
236234 ast_builder. allocator ,
237235 ) ,
238236 None :: < oxc_allocator:: Box < oxc_ast:: ast:: BindingRestElement < ' a > > > ,
@@ -241,20 +239,16 @@ fn create_styled_component<'a>(
241239 SPAN ,
242240 oxc_allocator:: Vec :: from_iter_in ( vec ! [ ] , ast_builder. allocator ) ,
243241 oxc_allocator:: Vec :: from_iter_in (
244- vec ! [
245- ast_builder. statement_expression(
242+ vec ! [ ast_builder. statement_expression(
243+ SPAN ,
244+ ast_builder. expression_jsx_element(
246245 SPAN ,
247- ast_builder. expression_jsx_element (
246+ ast_builder. alloc_jsx_opening_element (
248247 SPAN ,
249- ast_builder. alloc_jsx_opening_element(
250- SPAN ,
251- ast_builder
252- . jsx_element_name_identifier( SPAN , ast_builder. atom( tag_name) ) ,
253- None :: <
254- oxc_allocator:: Box <oxc_ast:: ast:: TSTypeParameterInstantiation <' a>>,
255- >,
256- oxc_allocator:: Vec :: from_iter_in(
257- vec![
248+ ast_builder. jsx_element_name_identifier( SPAN , ast_builder. atom( tag_name) ) ,
249+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeParameterInstantiation <' a>>>,
250+ oxc_allocator:: Vec :: from_iter_in(
251+ vec![
258252 ast_builder. jsx_attribute_item_spread_attribute(
259253 SPAN ,
260254 ast_builder
@@ -333,14 +327,13 @@ fn create_styled_component<'a>(
333327 ) ,
334328 ) ,
335329 ] ,
336- ast_builder. allocator,
337- ) ,
330+ ast_builder. allocator,
338331 ) ,
339- oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
340- None :: <oxc_allocator:: Box <oxc_ast:: ast:: JSXClosingElement <' a>>>,
341332 ) ,
333+ oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
334+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: JSXClosingElement <' a>>>,
342335 ) ,
343- ] ,
336+ ) ] ,
344337 ast_builder. allocator ,
345338 ) ,
346339 ) ;
0 commit comments