@@ -181,15 +181,14 @@ fn create_styled_component<'a>(
181181 SPAN ,
182182 FormalParameterKind :: ArrowFormalParameters ,
183183 oxc_allocator:: Vec :: from_iter_in (
184- vec ! [
185- ast_builder. formal_parameter(
186- SPAN ,
187- oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
188- ast_builder. binding_pattern(
189- ast_builder. binding_pattern_kind_object_pattern(
190- SPAN ,
191- oxc_allocator:: Vec :: from_iter_in(
192- vec![
184+ vec ! [ ast_builder. formal_parameter(
185+ SPAN ,
186+ oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
187+ ast_builder. binding_pattern(
188+ ast_builder. binding_pattern_kind_object_pattern(
189+ SPAN ,
190+ oxc_allocator:: Vec :: from_iter_in(
191+ vec![
193192 ast_builder. binding_property(
194193 SPAN ,
195194 ast_builder. property_key_static_identifier( SPAN , "style" ) ,
@@ -227,28 +226,27 @@ fn create_styled_component<'a>(
227226 false ,
228227 ) ,
229228 ] ,
230- ast_builder. allocator,
231- ) ,
232- Some ( ast_builder. binding_rest_element(
233- SPAN ,
234- ast_builder. binding_pattern(
235- ast_builder. binding_pattern_kind_binding_identifier(
236- SPAN ,
237- ast_builder. atom( "rest" ) ,
238- ) ,
239- None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
240- false ,
241- ) ,
242- ) ) ,
229+ ast_builder. allocator,
243230 ) ,
244- None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
245- false ,
231+ Some ( ast_builder. binding_rest_element(
232+ SPAN ,
233+ ast_builder. binding_pattern(
234+ ast_builder. binding_pattern_kind_binding_identifier(
235+ SPAN ,
236+ ast_builder. atom( "rest" ) ,
237+ ) ,
238+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
239+ false ,
240+ ) ,
241+ ) ) ,
246242 ) ,
247- None ,
248- false ,
243+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeAnnotation <' a>>>,
249244 false ,
250245 ) ,
251- ] ,
246+ None ,
247+ false ,
248+ false ,
249+ ) ] ,
252250 ast_builder. allocator ,
253251 ) ,
254252 None :: < oxc_allocator:: Box < oxc_ast:: ast:: BindingRestElement < ' a > > > ,
@@ -257,20 +255,16 @@ fn create_styled_component<'a>(
257255 SPAN ,
258256 oxc_allocator:: Vec :: from_iter_in ( vec ! [ ] , ast_builder. allocator ) ,
259257 oxc_allocator:: Vec :: from_iter_in (
260- vec ! [
261- ast_builder. statement_expression(
258+ vec ! [ ast_builder. statement_expression(
259+ SPAN ,
260+ ast_builder. expression_jsx_element(
262261 SPAN ,
263- ast_builder. expression_jsx_element (
262+ ast_builder. alloc_jsx_opening_element (
264263 SPAN ,
265- ast_builder. alloc_jsx_opening_element(
266- SPAN ,
267- ast_builder
268- . jsx_element_name_identifier( SPAN , ast_builder. atom( tag_name) ) ,
269- None :: <
270- oxc_allocator:: Box <oxc_ast:: ast:: TSTypeParameterInstantiation <' a>>,
271- >,
272- oxc_allocator:: Vec :: from_iter_in(
273- vec![
264+ ast_builder. jsx_element_name_identifier( SPAN , ast_builder. atom( tag_name) ) ,
265+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: TSTypeParameterInstantiation <' a>>>,
266+ oxc_allocator:: Vec :: from_iter_in(
267+ vec![
274268 ast_builder. jsx_attribute_item_spread_attribute(
275269 SPAN ,
276270 ast_builder
@@ -349,14 +343,13 @@ fn create_styled_component<'a>(
349343 ) ,
350344 ) ,
351345 ] ,
352- ast_builder. allocator,
353- ) ,
346+ ast_builder. allocator,
354347 ) ,
355- oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
356- None :: <oxc_allocator:: Box <oxc_ast:: ast:: JSXClosingElement <' a>>>,
357348 ) ,
349+ oxc_allocator:: Vec :: from_iter_in( vec![ ] , ast_builder. allocator) ,
350+ None :: <oxc_allocator:: Box <oxc_ast:: ast:: JSXClosingElement <' a>>>,
358351 ) ,
359- ] ,
352+ ) ] ,
360353 ast_builder. allocator ,
361354 ) ,
362355 ) ;
0 commit comments