@@ -10323,7 +10323,7 @@ impl<'a> AstBuilder<'a> {
10323
10323
is_type_of : bool ,
10324
10324
) -> TSType < ' a >
10325
10325
where
10326
- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
10326
+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
10327
10327
T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
10328
10328
{
10329
10329
TSType :: TSImportType ( self . alloc_ts_import_type (
@@ -13435,7 +13435,7 @@ impl<'a> AstBuilder<'a> {
13435
13435
is_type_of : bool ,
13436
13436
) -> TSTypeQueryExprName < ' a >
13437
13437
where
13438
- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
13438
+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
13439
13439
T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
13440
13440
{
13441
13441
TSTypeQueryExprName :: TSImportType ( self . alloc_ts_import_type (
@@ -13470,7 +13470,7 @@ impl<'a> AstBuilder<'a> {
13470
13470
is_type_of : bool ,
13471
13471
) -> TSImportType < ' a >
13472
13472
where
13473
- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
13473
+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
13474
13474
T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
13475
13475
{
13476
13476
TSImportType {
@@ -13505,7 +13505,7 @@ impl<'a> AstBuilder<'a> {
13505
13505
is_type_of : bool ,
13506
13506
) -> Box < ' a , TSImportType < ' a > >
13507
13507
where
13508
- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
13508
+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
13509
13509
T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
13510
13510
{
13511
13511
Box :: new_in (
@@ -13514,114 +13514,6 @@ impl<'a> AstBuilder<'a> {
13514
13514
)
13515
13515
}
13516
13516
13517
- /// Build a [`TSImportAttributes`].
13518
- ///
13519
- /// If you want the built node to be allocated in the memory arena, use [`AstBuilder::alloc_ts_import_attributes`] instead.
13520
- ///
13521
- /// ## Parameters
13522
- /// * `span`: The [`Span`] covering this node
13523
- /// * `attributes_keyword`
13524
- /// * `elements`
13525
- #[ inline]
13526
- pub fn ts_import_attributes (
13527
- self ,
13528
- span : Span ,
13529
- attributes_keyword : IdentifierName < ' a > ,
13530
- elements : Vec < ' a , TSImportAttribute < ' a > > ,
13531
- ) -> TSImportAttributes < ' a > {
13532
- TSImportAttributes { span, attributes_keyword, elements }
13533
- }
13534
-
13535
- /// Build a [`TSImportAttributes`], and store it in the memory arena.
13536
- ///
13537
- /// Returns a [`Box`] containing the newly-allocated node. If you want a stack-allocated node, use [`AstBuilder::ts_import_attributes`] instead.
13538
- ///
13539
- /// ## Parameters
13540
- /// * `span`: The [`Span`] covering this node
13541
- /// * `attributes_keyword`
13542
- /// * `elements`
13543
- #[ inline]
13544
- pub fn alloc_ts_import_attributes (
13545
- self ,
13546
- span : Span ,
13547
- attributes_keyword : IdentifierName < ' a > ,
13548
- elements : Vec < ' a , TSImportAttribute < ' a > > ,
13549
- ) -> Box < ' a , TSImportAttributes < ' a > > {
13550
- Box :: new_in ( self . ts_import_attributes ( span, attributes_keyword, elements) , self . allocator )
13551
- }
13552
-
13553
- /// Build a [`TSImportAttribute`].
13554
- ///
13555
- /// If you want the built node to be allocated in the memory arena, use [`AstBuilder::alloc_ts_import_attribute`] instead.
13556
- ///
13557
- /// ## Parameters
13558
- /// * `span`: The [`Span`] covering this node
13559
- /// * `name`
13560
- /// * `value`
13561
- #[ inline]
13562
- pub fn ts_import_attribute (
13563
- self ,
13564
- span : Span ,
13565
- name : TSImportAttributeName < ' a > ,
13566
- value : Expression < ' a > ,
13567
- ) -> TSImportAttribute < ' a > {
13568
- TSImportAttribute { span, name, value }
13569
- }
13570
-
13571
- /// Build a [`TSImportAttribute`], and store it in the memory arena.
13572
- ///
13573
- /// Returns a [`Box`] containing the newly-allocated node. If you want a stack-allocated node, use [`AstBuilder::ts_import_attribute`] instead.
13574
- ///
13575
- /// ## Parameters
13576
- /// * `span`: The [`Span`] covering this node
13577
- /// * `name`
13578
- /// * `value`
13579
- #[ inline]
13580
- pub fn alloc_ts_import_attribute (
13581
- self ,
13582
- span : Span ,
13583
- name : TSImportAttributeName < ' a > ,
13584
- value : Expression < ' a > ,
13585
- ) -> Box < ' a , TSImportAttribute < ' a > > {
13586
- Box :: new_in ( self . ts_import_attribute ( span, name, value) , self . allocator )
13587
- }
13588
-
13589
- /// Build a [`TSImportAttributeName::Identifier`].
13590
- ///
13591
- /// ## Parameters
13592
- /// * `span`: The [`Span`] covering this node
13593
- /// * `name`
13594
- #[ inline]
13595
- pub fn ts_import_attribute_name_identifier < A > (
13596
- self ,
13597
- span : Span ,
13598
- name : A ,
13599
- ) -> TSImportAttributeName < ' a >
13600
- where
13601
- A : IntoIn < ' a , Atom < ' a > > ,
13602
- {
13603
- TSImportAttributeName :: Identifier ( self . identifier_name ( span, name) )
13604
- }
13605
-
13606
- /// Build a [`TSImportAttributeName::StringLiteral`].
13607
- ///
13608
- /// ## Parameters
13609
- /// * `span`: Node location in source code
13610
- /// * `value`: The value of the string.
13611
- /// * `raw`: The raw string as it appears in source code.
13612
- #[ inline]
13613
- pub fn ts_import_attribute_name_string_literal < A > (
13614
- self ,
13615
- span : Span ,
13616
- value : A ,
13617
- raw : Option < Atom < ' a > > ,
13618
- ) -> TSImportAttributeName < ' a >
13619
- where
13620
- A : IntoIn < ' a , Atom < ' a > > ,
13621
- {
13622
- TSImportAttributeName :: StringLiteral ( self . string_literal ( span, value, raw) )
13623
- }
13624
-
13625
13517
/// Build a [`TSFunctionType`].
13626
13518
///
13627
13519
/// If you want the built node to be allocated in the memory arena, use [`AstBuilder::alloc_ts_function_type`] instead.
0 commit comments