@@ -162,28 +162,29 @@ pub enum AstType {
162162 TSPropertySignature = 146 ,
163163 TSMethodSignature = 147 ,
164164 TSConstructSignatureDeclaration = 148 ,
165- TSInterfaceHeritage = 149 ,
166- TSModuleDeclaration = 150 ,
167- TSModuleBlock = 151 ,
168- TSTypeLiteral = 152 ,
169- TSInferType = 153 ,
170- TSTypeQuery = 154 ,
171- TSImportType = 155 ,
172- TSMappedType = 156 ,
173- TSTemplateLiteralType = 157 ,
174- TSAsExpression = 158 ,
175- TSSatisfiesExpression = 159 ,
176- TSTypeAssertion = 160 ,
177- TSImportEqualsDeclaration = 161 ,
178- TSModuleReference = 162 ,
179- TSExternalModuleReference = 163 ,
180- TSNonNullExpression = 164 ,
181- Decorator = 165 ,
182- TSExportAssignment = 166 ,
183- TSInstantiationExpression = 167 ,
184- JSDocNullableType = 168 ,
185- JSDocNonNullableType = 169 ,
186- JSDocUnknownType = 170 ,
165+ TSIndexSignatureName = 149 ,
166+ TSInterfaceHeritage = 150 ,
167+ TSModuleDeclaration = 151 ,
168+ TSModuleBlock = 152 ,
169+ TSTypeLiteral = 153 ,
170+ TSInferType = 154 ,
171+ TSTypeQuery = 155 ,
172+ TSImportType = 156 ,
173+ TSMappedType = 157 ,
174+ TSTemplateLiteralType = 158 ,
175+ TSAsExpression = 159 ,
176+ TSSatisfiesExpression = 160 ,
177+ TSTypeAssertion = 161 ,
178+ TSImportEqualsDeclaration = 162 ,
179+ TSModuleReference = 163 ,
180+ TSExternalModuleReference = 164 ,
181+ TSNonNullExpression = 165 ,
182+ Decorator = 166 ,
183+ TSExportAssignment = 167 ,
184+ TSInstantiationExpression = 168 ,
185+ JSDocNullableType = 169 ,
186+ JSDocNonNullableType = 170 ,
187+ JSDocUnknownType = 171 ,
187188}
188189
189190/// Untyped AST Node Kind
@@ -349,6 +350,7 @@ pub enum AstKind<'a> {
349350 TSMethodSignature ( & ' a TSMethodSignature < ' a > ) = AstType :: TSMethodSignature as u8 ,
350351 TSConstructSignatureDeclaration ( & ' a TSConstructSignatureDeclaration < ' a > ) =
351352 AstType :: TSConstructSignatureDeclaration as u8 ,
353+ TSIndexSignatureName ( & ' a TSIndexSignatureName < ' a > ) = AstType :: TSIndexSignatureName as u8 ,
352354 TSInterfaceHeritage ( & ' a TSInterfaceHeritage < ' a > ) = AstType :: TSInterfaceHeritage as u8 ,
353355 TSModuleDeclaration ( & ' a TSModuleDeclaration < ' a > ) = AstType :: TSModuleDeclaration as u8 ,
354356 TSModuleBlock ( & ' a TSModuleBlock < ' a > ) = AstType :: TSModuleBlock as u8 ,
@@ -540,6 +542,7 @@ impl GetSpan for AstKind<'_> {
540542 Self :: TSPropertySignature ( it) => it. span ( ) ,
541543 Self :: TSMethodSignature ( it) => it. span ( ) ,
542544 Self :: TSConstructSignatureDeclaration ( it) => it. span ( ) ,
545+ Self :: TSIndexSignatureName ( it) => it. span ( ) ,
543546 Self :: TSInterfaceHeritage ( it) => it. span ( ) ,
544547 Self :: TSModuleDeclaration ( it) => it. span ( ) ,
545548 Self :: TSModuleBlock ( it) => it. span ( ) ,
@@ -1316,6 +1319,11 @@ impl<'a> AstKind<'a> {
13161319 if let Self :: TSConstructSignatureDeclaration ( v) = self { Some ( v) } else { None }
13171320 }
13181321
1322+ #[ inline]
1323+ pub fn as_ts_index_signature_name ( self ) -> Option < & ' a TSIndexSignatureName < ' a > > {
1324+ if let Self :: TSIndexSignatureName ( v) = self { Some ( v) } else { None }
1325+ }
1326+
13191327 #[ inline]
13201328 pub fn as_ts_interface_heritage ( self ) -> Option < & ' a TSInterfaceHeritage < ' a > > {
13211329 if let Self :: TSInterfaceHeritage ( v) = self { Some ( v) } else { None }
0 commit comments