@@ -170,36 +170,37 @@ pub enum AstType {
170170 TSTypeAliasDeclaration = 153 ,
171171 TSClassImplements = 154 ,
172172 TSInterfaceDeclaration = 155 ,
173- TSPropertySignature = 156 ,
174- TSIndexSignature = 157 ,
175- TSCallSignatureDeclaration = 158 ,
176- TSMethodSignature = 159 ,
177- TSConstructSignatureDeclaration = 160 ,
178- TSIndexSignatureName = 161 ,
179- TSInterfaceHeritage = 162 ,
180- TSTypePredicate = 163 ,
181- TSModuleDeclaration = 164 ,
182- TSModuleBlock = 165 ,
183- TSTypeLiteral = 166 ,
184- TSInferType = 167 ,
185- TSTypeQuery = 168 ,
186- TSImportType = 169 ,
187- TSConstructorType = 170 ,
188- TSMappedType = 171 ,
189- TSTemplateLiteralType = 172 ,
190- TSAsExpression = 173 ,
191- TSSatisfiesExpression = 174 ,
192- TSTypeAssertion = 175 ,
193- TSImportEqualsDeclaration = 176 ,
194- TSExternalModuleReference = 177 ,
195- TSNonNullExpression = 178 ,
196- Decorator = 179 ,
197- TSExportAssignment = 180 ,
198- TSNamespaceExportDeclaration = 181 ,
199- TSInstantiationExpression = 182 ,
200- JSDocNullableType = 183 ,
201- JSDocNonNullableType = 184 ,
202- JSDocUnknownType = 185 ,
173+ TSInterfaceBody = 156 ,
174+ TSPropertySignature = 157 ,
175+ TSIndexSignature = 158 ,
176+ TSCallSignatureDeclaration = 159 ,
177+ TSMethodSignature = 160 ,
178+ TSConstructSignatureDeclaration = 161 ,
179+ TSIndexSignatureName = 162 ,
180+ TSInterfaceHeritage = 163 ,
181+ TSTypePredicate = 164 ,
182+ TSModuleDeclaration = 165 ,
183+ TSModuleBlock = 166 ,
184+ TSTypeLiteral = 167 ,
185+ TSInferType = 168 ,
186+ TSTypeQuery = 169 ,
187+ TSImportType = 170 ,
188+ TSConstructorType = 171 ,
189+ TSMappedType = 172 ,
190+ TSTemplateLiteralType = 173 ,
191+ TSAsExpression = 174 ,
192+ TSSatisfiesExpression = 175 ,
193+ TSTypeAssertion = 176 ,
194+ TSImportEqualsDeclaration = 177 ,
195+ TSExternalModuleReference = 178 ,
196+ TSNonNullExpression = 179 ,
197+ Decorator = 180 ,
198+ TSExportAssignment = 181 ,
199+ TSNamespaceExportDeclaration = 182 ,
200+ TSInstantiationExpression = 183 ,
201+ JSDocNullableType = 184 ,
202+ JSDocNonNullableType = 185 ,
203+ JSDocUnknownType = 186 ,
203204}
204205
205206/// Untyped AST Node Kind
@@ -372,6 +373,7 @@ pub enum AstKind<'a> {
372373 TSTypeAliasDeclaration ( & ' a TSTypeAliasDeclaration < ' a > ) = AstType :: TSTypeAliasDeclaration as u8 ,
373374 TSClassImplements ( & ' a TSClassImplements < ' a > ) = AstType :: TSClassImplements as u8 ,
374375 TSInterfaceDeclaration ( & ' a TSInterfaceDeclaration < ' a > ) = AstType :: TSInterfaceDeclaration as u8 ,
376+ TSInterfaceBody ( & ' a TSInterfaceBody < ' a > ) = AstType :: TSInterfaceBody as u8 ,
375377 TSPropertySignature ( & ' a TSPropertySignature < ' a > ) = AstType :: TSPropertySignature as u8 ,
376378 TSIndexSignature ( & ' a TSIndexSignature < ' a > ) = AstType :: TSIndexSignature as u8 ,
377379 TSCallSignatureDeclaration ( & ' a TSCallSignatureDeclaration < ' a > ) =
@@ -581,6 +583,7 @@ impl GetSpan for AstKind<'_> {
581583 Self :: TSTypeAliasDeclaration ( it) => it. span ( ) ,
582584 Self :: TSClassImplements ( it) => it. span ( ) ,
583585 Self :: TSInterfaceDeclaration ( it) => it. span ( ) ,
586+ Self :: TSInterfaceBody ( it) => it. span ( ) ,
584587 Self :: TSPropertySignature ( it) => it. span ( ) ,
585588 Self :: TSIndexSignature ( it) => it. span ( ) ,
586589 Self :: TSCallSignatureDeclaration ( it) => it. span ( ) ,
@@ -774,6 +777,7 @@ impl GetAddress for AstKind<'_> {
774777 Self :: TSTypeAliasDeclaration ( it) => Address :: from_ptr ( it) ,
775778 Self :: TSClassImplements ( it) => Address :: from_ptr ( it) ,
776779 Self :: TSInterfaceDeclaration ( it) => Address :: from_ptr ( it) ,
780+ Self :: TSInterfaceBody ( it) => Address :: from_ptr ( it) ,
777781 Self :: TSPropertySignature ( it) => Address :: from_ptr ( it) ,
778782 Self :: TSIndexSignature ( it) => Address :: from_ptr ( it) ,
779783 Self :: TSCallSignatureDeclaration ( it) => Address :: from_ptr ( it) ,
@@ -1591,6 +1595,11 @@ impl<'a> AstKind<'a> {
15911595 if let Self :: TSInterfaceDeclaration ( v) = self { Some ( v) } else { None }
15921596 }
15931597
1598+ #[ inline]
1599+ pub fn as_ts_interface_body ( self ) -> Option < & ' a TSInterfaceBody < ' a > > {
1600+ if let Self :: TSInterfaceBody ( v) = self { Some ( v) } else { None }
1601+ }
1602+
15941603 #[ inline]
15951604 pub fn as_ts_property_signature ( self ) -> Option < & ' a TSPropertySignature < ' a > > {
15961605 if let Self :: TSPropertySignature ( v) = self { Some ( v) } else { None }
0 commit comments