@@ -192,7 +192,6 @@ pub enum AstNodes<'a> {
192192 TSSatisfiesExpression ( & ' a AstNode < ' a , TSSatisfiesExpression < ' a > > ) ,
193193 TSTypeAssertion ( & ' a AstNode < ' a , TSTypeAssertion < ' a > > ) ,
194194 TSImportEqualsDeclaration ( & ' a AstNode < ' a , TSImportEqualsDeclaration < ' a > > ) ,
195- TSModuleReference ( & ' a AstNode < ' a , TSModuleReference < ' a > > ) ,
196195 TSExternalModuleReference ( & ' a AstNode < ' a , TSExternalModuleReference < ' a > > ) ,
197196 TSNonNullExpression ( & ' a AstNode < ' a , TSNonNullExpression < ' a > > ) ,
198197 Decorator ( & ' a AstNode < ' a , Decorator < ' a > > ) ,
@@ -372,7 +371,6 @@ impl<'a> AstNodes<'a> {
372371 Self :: TSSatisfiesExpression ( n) => n. span ( ) ,
373372 Self :: TSTypeAssertion ( n) => n. span ( ) ,
374373 Self :: TSImportEqualsDeclaration ( n) => n. span ( ) ,
375- Self :: TSModuleReference ( n) => n. span ( ) ,
376374 Self :: TSExternalModuleReference ( n) => n. span ( ) ,
377375 Self :: TSNonNullExpression ( n) => n. span ( ) ,
378376 Self :: Decorator ( n) => n. span ( ) ,
@@ -552,7 +550,6 @@ impl<'a> AstNodes<'a> {
552550 Self :: TSSatisfiesExpression ( n) => n. parent ,
553551 Self :: TSTypeAssertion ( n) => n. parent ,
554552 Self :: TSImportEqualsDeclaration ( n) => n. parent ,
555- Self :: TSModuleReference ( n) => n. parent ,
556553 Self :: TSExternalModuleReference ( n) => n. parent ,
557554 Self :: TSNonNullExpression ( n) => n. parent ,
558555 Self :: Decorator ( n) => n. parent ,
@@ -732,7 +729,6 @@ impl<'a> AstNodes<'a> {
732729 Self :: TSSatisfiesExpression ( _) => "TSSatisfiesExpression" ,
733730 Self :: TSTypeAssertion ( _) => "TSTypeAssertion" ,
734731 Self :: TSImportEqualsDeclaration ( _) => "TSImportEqualsDeclaration" ,
735- Self :: TSModuleReference ( _) => "TSModuleReference" ,
736732 Self :: TSExternalModuleReference ( _) => "TSExternalModuleReference" ,
737733 Self :: TSNonNullExpression ( _) => "TSNonNullExpression" ,
738734 Self :: Decorator ( _) => "Decorator" ,
@@ -7391,7 +7387,7 @@ impl<'a> AstNode<'a, TSImportEqualsDeclaration<'a>> {
73917387impl < ' a > AstNode < ' a , TSModuleReference < ' a > > {
73927388 #[ inline]
73937389 pub fn as_ast_nodes ( & self ) -> & AstNodes < ' a > {
7394- let parent = self . allocator . alloc ( AstNodes :: TSModuleReference ( transmute_self ( self ) ) ) ;
7390+ let parent = self . parent ;
73957391 let node = match self . inner {
73967392 TSModuleReference :: ExternalModuleReference ( s) => {
73977393 AstNodes :: TSExternalModuleReference ( self . allocator . alloc ( AstNode {
0 commit comments