@@ -10306,32 +10306,32 @@ impl<'a> AstBuilder<'a> {
1030610306 ///
1030710307 /// ## Parameters
1030810308 /// * `span`: The [`Span`] covering this node
10309- /// * `is_type_of`: `true` for `typeof import("foo") `
10310- /// * `parameter `
10309+ /// * `argument `
10310+ /// * `options `
1031110311 /// * `qualifier`
10312- /// * `attributes `
10313- /// * `type_parameters `
10312+ /// * `type_arguments `
10313+ /// * `is_type_of`: `true` for `typeof import("foo") `
1031410314 #[ inline]
1031510315 pub fn ts_type_import_type < T1 , T2 > (
1031610316 self ,
1031710317 span : Span ,
10318- is_type_of : bool ,
10319- parameter : TSType < ' a > ,
10318+ argument : TSType < ' a > ,
10319+ options : T1 ,
1032010320 qualifier : Option < TSTypeName < ' a > > ,
10321- attributes : T1 ,
10322- type_parameters : T2 ,
10321+ type_arguments : T2 ,
10322+ is_type_of : bool ,
1032310323 ) -> TSType < ' a >
1032410324 where
1032510325 T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
1032610326 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1032710327 {
1032810328 TSType :: TSImportType ( self . alloc_ts_import_type (
1032910329 span,
10330- is_type_of ,
10331- parameter ,
10330+ argument ,
10331+ options ,
1033210332 qualifier,
10333- attributes ,
10334- type_parameters ,
10333+ type_arguments ,
10334+ is_type_of ,
1033510335 ) )
1033610336 }
1033710337
@@ -13422,32 +13422,32 @@ impl<'a> AstBuilder<'a> {
1342213422 ///
1342313423 /// ## Parameters
1342413424 /// * `span`: The [`Span`] covering this node
13425- /// * `is_type_of`: `true` for `typeof import("foo") `
13426- /// * `parameter `
13425+ /// * `argument `
13426+ /// * `options `
1342713427 /// * `qualifier`
13428- /// * `attributes `
13429- /// * `type_parameters `
13428+ /// * `type_arguments `
13429+ /// * `is_type_of`: `true` for `typeof import("foo") `
1343013430 #[ inline]
1343113431 pub fn ts_type_query_expr_name_import_type < T1 , T2 > (
1343213432 self ,
1343313433 span : Span ,
13434- is_type_of : bool ,
13435- parameter : TSType < ' a > ,
13434+ argument : TSType < ' a > ,
13435+ options : T1 ,
1343613436 qualifier : Option < TSTypeName < ' a > > ,
13437- attributes : T1 ,
13438- type_parameters : T2 ,
13437+ type_arguments : T2 ,
13438+ is_type_of : bool ,
1343913439 ) -> TSTypeQueryExprName < ' a >
1344013440 where
1344113441 T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
1344213442 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1344313443 {
1344413444 TSTypeQueryExprName :: TSImportType ( self . alloc_ts_import_type (
1344513445 span,
13446- is_type_of ,
13447- parameter ,
13446+ argument ,
13447+ options ,
1344813448 qualifier,
13449- attributes ,
13450- type_parameters ,
13449+ type_arguments ,
13450+ is_type_of ,
1345113451 ) )
1345213452 }
1345313453
@@ -13457,32 +13457,32 @@ impl<'a> AstBuilder<'a> {
1345713457 ///
1345813458 /// ## Parameters
1345913459 /// * `span`: The [`Span`] covering this node
13460- /// * `is_type_of`: `true` for `typeof import("foo") `
13461- /// * `parameter `
13460+ /// * `argument `
13461+ /// * `options `
1346213462 /// * `qualifier`
13463- /// * `attributes `
13464- /// * `type_parameters `
13463+ /// * `type_arguments `
13464+ /// * `is_type_of`: `true` for `typeof import("foo") `
1346513465 #[ inline]
1346613466 pub fn ts_import_type < T1 , T2 > (
1346713467 self ,
1346813468 span : Span ,
13469- is_type_of : bool ,
13470- parameter : TSType < ' a > ,
13469+ argument : TSType < ' a > ,
13470+ options : T1 ,
1347113471 qualifier : Option < TSTypeName < ' a > > ,
13472- attributes : T1 ,
13473- type_parameters : T2 ,
13472+ type_arguments : T2 ,
13473+ is_type_of : bool ,
1347413474 ) -> TSImportType < ' a >
1347513475 where
1347613476 T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
1347713477 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1347813478 {
1347913479 TSImportType {
1348013480 span,
13481- is_type_of ,
13482- parameter ,
13481+ argument ,
13482+ options : options . into_in ( self . allocator ) ,
1348313483 qualifier,
13484- attributes : attributes . into_in ( self . allocator ) ,
13485- type_parameters : type_parameters . into_in ( self . allocator ) ,
13484+ type_arguments : type_arguments . into_in ( self . allocator ) ,
13485+ is_type_of ,
1348613486 }
1348713487 }
1348813488
@@ -13492,34 +13492,27 @@ impl<'a> AstBuilder<'a> {
1349213492 ///
1349313493 /// ## Parameters
1349413494 /// * `span`: The [`Span`] covering this node
13495- /// * `is_type_of`: `true` for `typeof import("foo") `
13496- /// * `parameter `
13495+ /// * `argument `
13496+ /// * `options `
1349713497 /// * `qualifier`
13498- /// * `attributes `
13499- /// * `type_parameters `
13498+ /// * `type_arguments `
13499+ /// * `is_type_of`: `true` for `typeof import("foo") `
1350013500 #[ inline]
1350113501 pub fn alloc_ts_import_type < T1 , T2 > (
1350213502 self ,
1350313503 span : Span ,
13504- is_type_of : bool ,
13505- parameter : TSType < ' a > ,
13504+ argument : TSType < ' a > ,
13505+ options : T1 ,
1350613506 qualifier : Option < TSTypeName < ' a > > ,
13507- attributes : T1 ,
13508- type_parameters : T2 ,
13507+ type_arguments : T2 ,
13508+ is_type_of : bool ,
1350913509 ) -> Box < ' a , TSImportType < ' a > >
1351013510 where
1351113511 T1 : IntoIn < ' a , Option < Box < ' a , TSImportAttributes < ' a > > > > ,
1351213512 T2 : IntoIn < ' a , Option < Box < ' a , TSTypeParameterInstantiation < ' a > > > > ,
1351313513 {
1351413514 Box :: new_in (
13515- self . ts_import_type (
13516- span,
13517- is_type_of,
13518- parameter,
13519- qualifier,
13520- attributes,
13521- type_parameters,
13522- ) ,
13515+ self . ts_import_type ( span, argument, options, qualifier, type_arguments, is_type_of) ,
1352313516 self . allocator ,
1352413517 )
1352513518 }
0 commit comments