@@ -166,45 +166,44 @@ pub enum AstType {
166166 TSObjectKeyword = 149 ,
167167 TSBigIntKeyword = 150 ,
168168 TSTypeReference = 151 ,
169- TSTypeName = 152 ,
170- TSQualifiedName = 153 ,
171- TSTypeParameterInstantiation = 154 ,
172- TSTypeParameter = 155 ,
173- TSTypeParameterDeclaration = 156 ,
174- TSTypeAliasDeclaration = 157 ,
175- TSClassImplements = 158 ,
176- TSInterfaceDeclaration = 159 ,
177- TSInterfaceBody = 160 ,
178- TSPropertySignature = 161 ,
179- TSIndexSignature = 162 ,
180- TSCallSignatureDeclaration = 163 ,
181- TSMethodSignature = 164 ,
182- TSConstructSignatureDeclaration = 165 ,
183- TSIndexSignatureName = 166 ,
184- TSInterfaceHeritage = 167 ,
185- TSTypePredicate = 168 ,
186- TSModuleDeclaration = 169 ,
187- TSModuleBlock = 170 ,
188- TSTypeLiteral = 171 ,
189- TSInferType = 172 ,
190- TSTypeQuery = 173 ,
191- TSImportType = 174 ,
192- TSConstructorType = 175 ,
193- TSMappedType = 176 ,
194- TSTemplateLiteralType = 177 ,
195- TSAsExpression = 178 ,
196- TSSatisfiesExpression = 179 ,
197- TSTypeAssertion = 180 ,
198- TSImportEqualsDeclaration = 181 ,
199- TSExternalModuleReference = 182 ,
200- TSNonNullExpression = 183 ,
201- Decorator = 184 ,
202- TSExportAssignment = 185 ,
203- TSNamespaceExportDeclaration = 186 ,
204- TSInstantiationExpression = 187 ,
205- JSDocNullableType = 188 ,
206- JSDocNonNullableType = 189 ,
207- JSDocUnknownType = 190 ,
169+ TSQualifiedName = 152 ,
170+ TSTypeParameterInstantiation = 153 ,
171+ TSTypeParameter = 154 ,
172+ TSTypeParameterDeclaration = 155 ,
173+ TSTypeAliasDeclaration = 156 ,
174+ TSClassImplements = 157 ,
175+ TSInterfaceDeclaration = 158 ,
176+ TSInterfaceBody = 159 ,
177+ TSPropertySignature = 160 ,
178+ TSIndexSignature = 161 ,
179+ TSCallSignatureDeclaration = 162 ,
180+ TSMethodSignature = 163 ,
181+ TSConstructSignatureDeclaration = 164 ,
182+ TSIndexSignatureName = 165 ,
183+ TSInterfaceHeritage = 166 ,
184+ TSTypePredicate = 167 ,
185+ TSModuleDeclaration = 168 ,
186+ TSModuleBlock = 169 ,
187+ TSTypeLiteral = 170 ,
188+ TSInferType = 171 ,
189+ TSTypeQuery = 172 ,
190+ TSImportType = 173 ,
191+ TSConstructorType = 174 ,
192+ TSMappedType = 175 ,
193+ TSTemplateLiteralType = 176 ,
194+ TSAsExpression = 177 ,
195+ TSSatisfiesExpression = 178 ,
196+ TSTypeAssertion = 179 ,
197+ TSImportEqualsDeclaration = 180 ,
198+ TSExternalModuleReference = 181 ,
199+ TSNonNullExpression = 182 ,
200+ Decorator = 183 ,
201+ TSExportAssignment = 184 ,
202+ TSNamespaceExportDeclaration = 185 ,
203+ TSInstantiationExpression = 186 ,
204+ JSDocNullableType = 187 ,
205+ JSDocNonNullableType = 188 ,
206+ JSDocUnknownType = 189 ,
208207}
209208
210209/// Untyped AST Node Kind
@@ -373,7 +372,6 @@ pub enum AstKind<'a> {
373372 TSObjectKeyword ( & ' a TSObjectKeyword ) = AstType :: TSObjectKeyword as u8 ,
374373 TSBigIntKeyword ( & ' a TSBigIntKeyword ) = AstType :: TSBigIntKeyword as u8 ,
375374 TSTypeReference ( & ' a TSTypeReference < ' a > ) = AstType :: TSTypeReference as u8 ,
376- TSTypeName ( & ' a TSTypeName < ' a > ) = AstType :: TSTypeName as u8 ,
377375 TSQualifiedName ( & ' a TSQualifiedName < ' a > ) = AstType :: TSQualifiedName as u8 ,
378376 TSTypeParameterInstantiation ( & ' a TSTypeParameterInstantiation < ' a > ) =
379377 AstType :: TSTypeParameterInstantiation as u8 ,
@@ -589,7 +587,6 @@ impl GetSpan for AstKind<'_> {
589587 Self :: TSObjectKeyword ( it) => it. span ( ) ,
590588 Self :: TSBigIntKeyword ( it) => it. span ( ) ,
591589 Self :: TSTypeReference ( it) => it. span ( ) ,
592- Self :: TSTypeName ( it) => it. span ( ) ,
593590 Self :: TSQualifiedName ( it) => it. span ( ) ,
594591 Self :: TSTypeParameterInstantiation ( it) => it. span ( ) ,
595592 Self :: TSTypeParameter ( it) => it. span ( ) ,
@@ -787,7 +784,6 @@ impl GetAddress for AstKind<'_> {
787784 Self :: TSObjectKeyword ( it) => Address :: from_ptr ( it) ,
788785 Self :: TSBigIntKeyword ( it) => Address :: from_ptr ( it) ,
789786 Self :: TSTypeReference ( it) => Address :: from_ptr ( it) ,
790- Self :: TSTypeName ( it) => it. address ( ) ,
791787 Self :: TSQualifiedName ( it) => Address :: from_ptr ( it) ,
792788 Self :: TSTypeParameterInstantiation ( it) => Address :: from_ptr ( it) ,
793789 Self :: TSTypeParameter ( it) => Address :: from_ptr ( it) ,
@@ -1595,11 +1591,6 @@ impl<'a> AstKind<'a> {
15951591 if let Self :: TSTypeReference ( v) = self { Some ( v) } else { None }
15961592 }
15971593
1598- #[ inline]
1599- pub fn as_ts_type_name ( self ) -> Option < & ' a TSTypeName < ' a > > {
1600- if let Self :: TSTypeName ( v) = self { Some ( v) } else { None }
1601- }
1602-
16031594 #[ inline]
16041595 pub fn as_ts_qualified_name ( self ) -> Option < & ' a TSQualifiedName < ' a > > {
16051596 if let Self :: TSQualifiedName ( v) = self { Some ( v) } else { None }
0 commit comments