@@ -182,8 +182,8 @@ pub(crate) enum AncestorType {
182
182
ExportNamedDeclarationSpecifiers = 159 ,
183
183
ExportNamedDeclarationSource = 160 ,
184
184
ExportNamedDeclarationWithClause = 161 ,
185
- ExportDefaultDeclarationDeclaration = 162 ,
186
- ExportDefaultDeclarationExported = 163 ,
185
+ ExportDefaultDeclarationExported = 162 ,
186
+ ExportDefaultDeclarationDeclaration = 163 ,
187
187
ExportAllDeclarationExported = 164 ,
188
188
ExportAllDeclarationSource = 165 ,
189
189
ExportAllDeclarationWithClause = 166 ,
@@ -624,10 +624,10 @@ pub enum Ancestor<'a, 't> {
624
624
AncestorType :: ExportNamedDeclarationSource as u16 ,
625
625
ExportNamedDeclarationWithClause ( ExportNamedDeclarationWithoutWithClause < ' a , ' t > ) =
626
626
AncestorType :: ExportNamedDeclarationWithClause as u16 ,
627
- ExportDefaultDeclarationDeclaration ( ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > ) =
628
- AncestorType :: ExportDefaultDeclarationDeclaration as u16 ,
629
627
ExportDefaultDeclarationExported ( ExportDefaultDeclarationWithoutExported < ' a , ' t > ) =
630
628
AncestorType :: ExportDefaultDeclarationExported as u16 ,
629
+ ExportDefaultDeclarationDeclaration ( ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > ) =
630
+ AncestorType :: ExportDefaultDeclarationDeclaration as u16 ,
631
631
ExportAllDeclarationExported ( ExportAllDeclarationWithoutExported < ' a , ' t > ) =
632
632
AncestorType :: ExportAllDeclarationExported as u16 ,
633
633
ExportAllDeclarationSource ( ExportAllDeclarationWithoutSource < ' a , ' t > ) =
@@ -1404,8 +1404,8 @@ impl<'a, 't> Ancestor<'a, 't> {
1404
1404
pub fn is_export_default_declaration ( self ) -> bool {
1405
1405
matches ! (
1406
1406
self ,
1407
- Self :: ExportDefaultDeclarationDeclaration ( _)
1408
- | Self :: ExportDefaultDeclarationExported ( _)
1407
+ Self :: ExportDefaultDeclarationExported ( _)
1408
+ | Self :: ExportDefaultDeclarationDeclaration ( _)
1409
1409
)
1410
1410
}
1411
1411
@@ -2367,8 +2367,8 @@ impl<'a, 't> GetAddress for Ancestor<'a, 't> {
2367
2367
Self :: ExportNamedDeclarationSpecifiers ( a) => a. address ( ) ,
2368
2368
Self :: ExportNamedDeclarationSource ( a) => a. address ( ) ,
2369
2369
Self :: ExportNamedDeclarationWithClause ( a) => a. address ( ) ,
2370
- Self :: ExportDefaultDeclarationDeclaration ( a) => a. address ( ) ,
2371
2370
Self :: ExportDefaultDeclarationExported ( a) => a. address ( ) ,
2371
+ Self :: ExportDefaultDeclarationDeclaration ( a) => a. address ( ) ,
2372
2372
Self :: ExportAllDeclarationExported ( a) => a. address ( ) ,
2373
2373
Self :: ExportAllDeclarationSource ( a) => a. address ( ) ,
2374
2374
Self :: ExportAllDeclarationWithClause ( a) => a. address ( ) ,
@@ -10009,19 +10009,19 @@ impl<'a, 't> GetAddress for ExportNamedDeclarationWithoutWithClause<'a, 't> {
10009
10009
10010
10010
pub ( crate ) const OFFSET_EXPORT_DEFAULT_DECLARATION_SPAN : usize =
10011
10011
offset_of ! ( ExportDefaultDeclaration , span) ;
10012
- pub ( crate ) const OFFSET_EXPORT_DEFAULT_DECLARATION_DECLARATION : usize =
10013
- offset_of ! ( ExportDefaultDeclaration , declaration) ;
10014
10012
pub ( crate ) const OFFSET_EXPORT_DEFAULT_DECLARATION_EXPORTED : usize =
10015
10013
offset_of ! ( ExportDefaultDeclaration , exported) ;
10014
+ pub ( crate ) const OFFSET_EXPORT_DEFAULT_DECLARATION_DECLARATION : usize =
10015
+ offset_of ! ( ExportDefaultDeclaration , declaration) ;
10016
10016
10017
10017
#[ repr( transparent) ]
10018
10018
#[ derive( Clone , Copy , Debug ) ]
10019
- pub struct ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > (
10019
+ pub struct ExportDefaultDeclarationWithoutExported < ' a , ' t > (
10020
10020
pub ( crate ) * const ExportDefaultDeclaration < ' a > ,
10021
10021
pub ( crate ) PhantomData < & ' t ( ) > ,
10022
10022
) ;
10023
10023
10024
- impl < ' a , ' t > ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > {
10024
+ impl < ' a , ' t > ExportDefaultDeclarationWithoutExported < ' a , ' t > {
10025
10025
#[ inline]
10026
10026
pub fn span ( self ) -> & ' t Span {
10027
10027
unsafe {
@@ -10030,15 +10030,15 @@ impl<'a, 't> ExportDefaultDeclarationWithoutDeclaration<'a, 't> {
10030
10030
}
10031
10031
10032
10032
#[ inline]
10033
- pub fn exported ( self ) -> & ' t ModuleExportName < ' a > {
10033
+ pub fn declaration ( self ) -> & ' t ExportDefaultDeclarationKind < ' a > {
10034
10034
unsafe {
10035
- & * ( ( self . 0 as * const u8 ) . add ( OFFSET_EXPORT_DEFAULT_DECLARATION_EXPORTED )
10036
- as * const ModuleExportName < ' a > )
10035
+ & * ( ( self . 0 as * const u8 ) . add ( OFFSET_EXPORT_DEFAULT_DECLARATION_DECLARATION )
10036
+ as * const ExportDefaultDeclarationKind < ' a > )
10037
10037
}
10038
10038
}
10039
10039
}
10040
10040
10041
- impl < ' a , ' t > GetAddress for ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > {
10041
+ impl < ' a , ' t > GetAddress for ExportDefaultDeclarationWithoutExported < ' a , ' t > {
10042
10042
#[ inline]
10043
10043
fn address ( & self ) -> Address {
10044
10044
Address :: from_ptr ( self . 0 )
@@ -10047,12 +10047,12 @@ impl<'a, 't> GetAddress for ExportDefaultDeclarationWithoutDeclaration<'a, 't> {
10047
10047
10048
10048
#[ repr( transparent) ]
10049
10049
#[ derive( Clone , Copy , Debug ) ]
10050
- pub struct ExportDefaultDeclarationWithoutExported < ' a , ' t > (
10050
+ pub struct ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > (
10051
10051
pub ( crate ) * const ExportDefaultDeclaration < ' a > ,
10052
10052
pub ( crate ) PhantomData < & ' t ( ) > ,
10053
10053
) ;
10054
10054
10055
- impl < ' a , ' t > ExportDefaultDeclarationWithoutExported < ' a , ' t > {
10055
+ impl < ' a , ' t > ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > {
10056
10056
#[ inline]
10057
10057
pub fn span ( self ) -> & ' t Span {
10058
10058
unsafe {
@@ -10061,15 +10061,15 @@ impl<'a, 't> ExportDefaultDeclarationWithoutExported<'a, 't> {
10061
10061
}
10062
10062
10063
10063
#[ inline]
10064
- pub fn declaration ( self ) -> & ' t ExportDefaultDeclarationKind < ' a > {
10064
+ pub fn exported ( self ) -> & ' t ModuleExportName < ' a > {
10065
10065
unsafe {
10066
- & * ( ( self . 0 as * const u8 ) . add ( OFFSET_EXPORT_DEFAULT_DECLARATION_DECLARATION )
10067
- as * const ExportDefaultDeclarationKind < ' a > )
10066
+ & * ( ( self . 0 as * const u8 ) . add ( OFFSET_EXPORT_DEFAULT_DECLARATION_EXPORTED )
10067
+ as * const ModuleExportName < ' a > )
10068
10068
}
10069
10069
}
10070
10070
}
10071
10071
10072
- impl < ' a , ' t > GetAddress for ExportDefaultDeclarationWithoutExported < ' a , ' t > {
10072
+ impl < ' a , ' t > GetAddress for ExportDefaultDeclarationWithoutDeclaration < ' a , ' t > {
10073
10073
#[ inline]
10074
10074
fn address ( & self ) -> Address {
10075
10075
Address :: from_ptr ( self . 0 )
0 commit comments