@@ -92,106 +92,107 @@ pub enum AstType {
9292 PrivateIdentifier = 76 ,
9393 StaticBlock = 77 ,
9494 ModuleDeclaration = 78 ,
95- ImportExpression = 79 ,
96- ImportDeclaration = 80 ,
97- ImportSpecifier = 81 ,
98- ImportDefaultSpecifier = 82 ,
99- ImportNamespaceSpecifier = 83 ,
100- WithClause = 84 ,
101- ExportNamedDeclaration = 85 ,
102- ExportDefaultDeclaration = 86 ,
103- ExportAllDeclaration = 87 ,
104- ExportSpecifier = 88 ,
105- V8IntrinsicExpression = 89 ,
106- BooleanLiteral = 90 ,
107- NullLiteral = 91 ,
108- NumericLiteral = 92 ,
109- StringLiteral = 93 ,
110- BigIntLiteral = 94 ,
111- RegExpLiteral = 95 ,
112- JSXElement = 96 ,
113- JSXOpeningElement = 97 ,
114- JSXClosingElement = 98 ,
115- JSXFragment = 99 ,
116- JSXOpeningFragment = 100 ,
117- JSXClosingFragment = 101 ,
118- JSXNamespacedName = 102 ,
119- JSXMemberExpression = 103 ,
120- JSXExpressionContainer = 104 ,
121- JSXEmptyExpression = 105 ,
122- JSXAttribute = 106 ,
123- JSXSpreadAttribute = 107 ,
124- JSXIdentifier = 108 ,
125- JSXSpreadChild = 109 ,
126- JSXText = 110 ,
127- TSThisParameter = 111 ,
128- TSEnumDeclaration = 112 ,
129- TSEnumBody = 113 ,
130- TSEnumMember = 114 ,
131- TSTypeAnnotation = 115 ,
132- TSLiteralType = 116 ,
133- TSConditionalType = 117 ,
134- TSUnionType = 118 ,
135- TSIntersectionType = 119 ,
136- TSParenthesizedType = 120 ,
137- TSTypeOperator = 121 ,
138- TSArrayType = 122 ,
139- TSIndexedAccessType = 123 ,
140- TSTupleType = 124 ,
141- TSNamedTupleMember = 125 ,
142- TSOptionalType = 126 ,
143- TSRestType = 127 ,
144- TSAnyKeyword = 128 ,
145- TSStringKeyword = 129 ,
146- TSBooleanKeyword = 130 ,
147- TSNumberKeyword = 131 ,
148- TSNeverKeyword = 132 ,
149- TSIntrinsicKeyword = 133 ,
150- TSUnknownKeyword = 134 ,
151- TSNullKeyword = 135 ,
152- TSUndefinedKeyword = 136 ,
153- TSVoidKeyword = 137 ,
154- TSSymbolKeyword = 138 ,
155- TSThisType = 139 ,
156- TSObjectKeyword = 140 ,
157- TSBigIntKeyword = 141 ,
158- TSTypeReference = 142 ,
159- TSTypeName = 143 ,
160- TSQualifiedName = 144 ,
161- TSTypeParameterInstantiation = 145 ,
162- TSTypeParameter = 146 ,
163- TSTypeParameterDeclaration = 147 ,
164- TSTypeAliasDeclaration = 148 ,
165- TSClassImplements = 149 ,
166- TSInterfaceDeclaration = 150 ,
167- TSPropertySignature = 151 ,
168- TSCallSignatureDeclaration = 152 ,
169- TSMethodSignature = 153 ,
170- TSConstructSignatureDeclaration = 154 ,
171- TSIndexSignatureName = 155 ,
172- TSInterfaceHeritage = 156 ,
173- TSTypePredicate = 157 ,
174- TSModuleDeclaration = 158 ,
175- TSModuleBlock = 159 ,
176- TSTypeLiteral = 160 ,
177- TSInferType = 161 ,
178- TSTypeQuery = 162 ,
179- TSImportType = 163 ,
180- TSMappedType = 164 ,
181- TSTemplateLiteralType = 165 ,
182- TSAsExpression = 166 ,
183- TSSatisfiesExpression = 167 ,
184- TSTypeAssertion = 168 ,
185- TSImportEqualsDeclaration = 169 ,
186- TSExternalModuleReference = 170 ,
187- TSNonNullExpression = 171 ,
188- Decorator = 172 ,
189- TSExportAssignment = 173 ,
190- TSNamespaceExportDeclaration = 174 ,
191- TSInstantiationExpression = 175 ,
192- JSDocNullableType = 176 ,
193- JSDocNonNullableType = 177 ,
194- JSDocUnknownType = 178 ,
95+ AccessorProperty = 79 ,
96+ ImportExpression = 80 ,
97+ ImportDeclaration = 81 ,
98+ ImportSpecifier = 82 ,
99+ ImportDefaultSpecifier = 83 ,
100+ ImportNamespaceSpecifier = 84 ,
101+ WithClause = 85 ,
102+ ExportNamedDeclaration = 86 ,
103+ ExportDefaultDeclaration = 87 ,
104+ ExportAllDeclaration = 88 ,
105+ ExportSpecifier = 89 ,
106+ V8IntrinsicExpression = 90 ,
107+ BooleanLiteral = 91 ,
108+ NullLiteral = 92 ,
109+ NumericLiteral = 93 ,
110+ StringLiteral = 94 ,
111+ BigIntLiteral = 95 ,
112+ RegExpLiteral = 96 ,
113+ JSXElement = 97 ,
114+ JSXOpeningElement = 98 ,
115+ JSXClosingElement = 99 ,
116+ JSXFragment = 100 ,
117+ JSXOpeningFragment = 101 ,
118+ JSXClosingFragment = 102 ,
119+ JSXNamespacedName = 103 ,
120+ JSXMemberExpression = 104 ,
121+ JSXExpressionContainer = 105 ,
122+ JSXEmptyExpression = 106 ,
123+ JSXAttribute = 107 ,
124+ JSXSpreadAttribute = 108 ,
125+ JSXIdentifier = 109 ,
126+ JSXSpreadChild = 110 ,
127+ JSXText = 111 ,
128+ TSThisParameter = 112 ,
129+ TSEnumDeclaration = 113 ,
130+ TSEnumBody = 114 ,
131+ TSEnumMember = 115 ,
132+ TSTypeAnnotation = 116 ,
133+ TSLiteralType = 117 ,
134+ TSConditionalType = 118 ,
135+ TSUnionType = 119 ,
136+ TSIntersectionType = 120 ,
137+ TSParenthesizedType = 121 ,
138+ TSTypeOperator = 122 ,
139+ TSArrayType = 123 ,
140+ TSIndexedAccessType = 124 ,
141+ TSTupleType = 125 ,
142+ TSNamedTupleMember = 126 ,
143+ TSOptionalType = 127 ,
144+ TSRestType = 128 ,
145+ TSAnyKeyword = 129 ,
146+ TSStringKeyword = 130 ,
147+ TSBooleanKeyword = 131 ,
148+ TSNumberKeyword = 132 ,
149+ TSNeverKeyword = 133 ,
150+ TSIntrinsicKeyword = 134 ,
151+ TSUnknownKeyword = 135 ,
152+ TSNullKeyword = 136 ,
153+ TSUndefinedKeyword = 137 ,
154+ TSVoidKeyword = 138 ,
155+ TSSymbolKeyword = 139 ,
156+ TSThisType = 140 ,
157+ TSObjectKeyword = 141 ,
158+ TSBigIntKeyword = 142 ,
159+ TSTypeReference = 143 ,
160+ TSTypeName = 144 ,
161+ TSQualifiedName = 145 ,
162+ TSTypeParameterInstantiation = 146 ,
163+ TSTypeParameter = 147 ,
164+ TSTypeParameterDeclaration = 148 ,
165+ TSTypeAliasDeclaration = 149 ,
166+ TSClassImplements = 150 ,
167+ TSInterfaceDeclaration = 151 ,
168+ TSPropertySignature = 152 ,
169+ TSCallSignatureDeclaration = 153 ,
170+ TSMethodSignature = 154 ,
171+ TSConstructSignatureDeclaration = 155 ,
172+ TSIndexSignatureName = 156 ,
173+ TSInterfaceHeritage = 157 ,
174+ TSTypePredicate = 158 ,
175+ TSModuleDeclaration = 159 ,
176+ TSModuleBlock = 160 ,
177+ TSTypeLiteral = 161 ,
178+ TSInferType = 162 ,
179+ TSTypeQuery = 163 ,
180+ TSImportType = 164 ,
181+ TSMappedType = 165 ,
182+ TSTemplateLiteralType = 166 ,
183+ TSAsExpression = 167 ,
184+ TSSatisfiesExpression = 168 ,
185+ TSTypeAssertion = 169 ,
186+ TSImportEqualsDeclaration = 170 ,
187+ TSExternalModuleReference = 171 ,
188+ TSNonNullExpression = 172 ,
189+ Decorator = 173 ,
190+ TSExportAssignment = 174 ,
191+ TSNamespaceExportDeclaration = 175 ,
192+ TSInstantiationExpression = 176 ,
193+ JSDocNullableType = 177 ,
194+ JSDocNonNullableType = 178 ,
195+ JSDocUnknownType = 179 ,
195196}
196197
197198/// Untyped AST Node Kind
@@ -282,6 +283,7 @@ pub enum AstKind<'a> {
282283 PrivateIdentifier ( & ' a PrivateIdentifier < ' a > ) = AstType :: PrivateIdentifier as u8 ,
283284 StaticBlock ( & ' a StaticBlock < ' a > ) = AstType :: StaticBlock as u8 ,
284285 ModuleDeclaration ( & ' a ModuleDeclaration < ' a > ) = AstType :: ModuleDeclaration as u8 ,
286+ AccessorProperty ( & ' a AccessorProperty < ' a > ) = AstType :: AccessorProperty as u8 ,
285287 ImportExpression ( & ' a ImportExpression < ' a > ) = AstType :: ImportExpression as u8 ,
286288 ImportDeclaration ( & ' a ImportDeclaration < ' a > ) = AstType :: ImportDeclaration as u8 ,
287289 ImportSpecifier ( & ' a ImportSpecifier < ' a > ) = AstType :: ImportSpecifier as u8 ,
@@ -488,6 +490,7 @@ impl GetSpan for AstKind<'_> {
488490 Self :: PrivateIdentifier ( it) => it. span ( ) ,
489491 Self :: StaticBlock ( it) => it. span ( ) ,
490492 Self :: ModuleDeclaration ( it) => it. span ( ) ,
493+ Self :: AccessorProperty ( it) => it. span ( ) ,
491494 Self :: ImportExpression ( it) => it. span ( ) ,
492495 Self :: ImportDeclaration ( it) => it. span ( ) ,
493496 Self :: ImportSpecifier ( it) => it. span ( ) ,
@@ -988,6 +991,11 @@ impl<'a> AstKind<'a> {
988991 if let Self :: ModuleDeclaration ( v) = self { Some ( v) } else { None }
989992 }
990993
994+ #[ inline]
995+ pub fn as_accessor_property ( self ) -> Option < & ' a AccessorProperty < ' a > > {
996+ if let Self :: AccessorProperty ( v) = self { Some ( v) } else { None }
997+ }
998+
991999 #[ inline]
9921000 pub fn as_import_expression ( self ) -> Option < & ' a ImportExpression < ' a > > {
9931001 if let Self :: ImportExpression ( v) = self { Some ( v) } else { None }
0 commit comments