@@ -10323,7 +10323,7 @@ impl<'a> AstBuilder<'a> {
1032310323 is_type_of : bool ,
1032410324 ) -> TSType < ' a >
1032510325 where
10326- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
10326+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
1032710327 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1032810328 {
1032910329 TSType :: TSImportType ( self . alloc_ts_import_type (
@@ -13435,7 +13435,7 @@ impl<'a> AstBuilder<'a> {
1343513435 is_type_of : bool ,
1343613436 ) -> TSTypeQueryExprName < ' a >
1343713437 where
13438- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
13438+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
1343913439 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1344013440 {
1344113441 TSTypeQueryExprName :: TSImportType ( self . alloc_ts_import_type (
@@ -13470,7 +13470,7 @@ impl<'a> AstBuilder<'a> {
1347013470 is_type_of : bool ,
1347113471 ) -> TSImportType < ' a >
1347213472 where
13473- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
13473+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
1347413474 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1347513475 {
1347613476 TSImportType {
@@ -13505,7 +13505,7 @@ impl<'a> AstBuilder<'a> {
1350513505 is_type_of : bool ,
1350613506 ) -> Box < ' a , TSImportType < ' a > >
1350713507 where
13508- T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
13508+ T1 : IntoIn < ' a , Option < Box < ' a , ObjectExpression < ' a > > > > ,
1350913509 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1351013510 {
1351113511 Box :: new_in (
@@ -13514,114 +13514,6 @@ impl<'a> AstBuilder<'a> {
1351413514 )
1351513515 }
1351613516
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-
1362513517 /// Build a [`TSFunctionType`].
1362613518 ///
1362713519 /// If you want the built node to be allocated in the memory arena, use [`AstBuilder::alloc_ts_function_type`] instead.
0 commit comments