@@ -99,111 +99,110 @@ pub enum AstType {
9999 PropertyDefinition = 82 ,
100100 PrivateIdentifier = 83 ,
101101 StaticBlock = 84 ,
102- ModuleDeclaration = 85 ,
103- AccessorProperty = 86 ,
104- ImportExpression = 87 ,
105- ImportDeclaration = 88 ,
106- ImportSpecifier = 89 ,
107- ImportDefaultSpecifier = 90 ,
108- ImportNamespaceSpecifier = 91 ,
109- WithClause = 92 ,
110- ImportAttribute = 93 ,
111- ExportNamedDeclaration = 94 ,
112- ExportDefaultDeclaration = 95 ,
113- ExportAllDeclaration = 96 ,
114- ExportSpecifier = 97 ,
115- V8IntrinsicExpression = 98 ,
116- BooleanLiteral = 99 ,
117- NullLiteral = 100 ,
118- NumericLiteral = 101 ,
119- StringLiteral = 102 ,
120- BigIntLiteral = 103 ,
121- RegExpLiteral = 104 ,
122- JSXElement = 105 ,
123- JSXOpeningElement = 106 ,
124- JSXClosingElement = 107 ,
125- JSXFragment = 108 ,
126- JSXOpeningFragment = 109 ,
127- JSXClosingFragment = 110 ,
128- JSXNamespacedName = 111 ,
129- JSXMemberExpression = 112 ,
130- JSXExpressionContainer = 113 ,
131- JSXEmptyExpression = 114 ,
132- JSXAttribute = 115 ,
133- JSXSpreadAttribute = 116 ,
134- JSXIdentifier = 117 ,
135- JSXSpreadChild = 118 ,
136- JSXText = 119 ,
137- TSThisParameter = 120 ,
138- TSEnumDeclaration = 121 ,
139- TSEnumBody = 122 ,
140- TSEnumMember = 123 ,
141- TSTypeAnnotation = 124 ,
142- TSLiteralType = 125 ,
143- TSConditionalType = 126 ,
144- TSUnionType = 127 ,
145- TSIntersectionType = 128 ,
146- TSParenthesizedType = 129 ,
147- TSTypeOperator = 130 ,
148- TSArrayType = 131 ,
149- TSIndexedAccessType = 132 ,
150- TSTupleType = 133 ,
151- TSNamedTupleMember = 134 ,
152- TSOptionalType = 135 ,
153- TSRestType = 136 ,
154- TSAnyKeyword = 137 ,
155- TSStringKeyword = 138 ,
156- TSBooleanKeyword = 139 ,
157- TSNumberKeyword = 140 ,
158- TSNeverKeyword = 141 ,
159- TSIntrinsicKeyword = 142 ,
160- TSUnknownKeyword = 143 ,
161- TSNullKeyword = 144 ,
162- TSUndefinedKeyword = 145 ,
163- TSVoidKeyword = 146 ,
164- TSSymbolKeyword = 147 ,
165- TSThisType = 148 ,
166- TSObjectKeyword = 149 ,
167- TSBigIntKeyword = 150 ,
168- TSTypeReference = 151 ,
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 ,
102+ AccessorProperty = 85 ,
103+ ImportExpression = 86 ,
104+ ImportDeclaration = 87 ,
105+ ImportSpecifier = 88 ,
106+ ImportDefaultSpecifier = 89 ,
107+ ImportNamespaceSpecifier = 90 ,
108+ WithClause = 91 ,
109+ ImportAttribute = 92 ,
110+ ExportNamedDeclaration = 93 ,
111+ ExportDefaultDeclaration = 94 ,
112+ ExportAllDeclaration = 95 ,
113+ ExportSpecifier = 96 ,
114+ V8IntrinsicExpression = 97 ,
115+ BooleanLiteral = 98 ,
116+ NullLiteral = 99 ,
117+ NumericLiteral = 100 ,
118+ StringLiteral = 101 ,
119+ BigIntLiteral = 102 ,
120+ RegExpLiteral = 103 ,
121+ JSXElement = 104 ,
122+ JSXOpeningElement = 105 ,
123+ JSXClosingElement = 106 ,
124+ JSXFragment = 107 ,
125+ JSXOpeningFragment = 108 ,
126+ JSXClosingFragment = 109 ,
127+ JSXNamespacedName = 110 ,
128+ JSXMemberExpression = 111 ,
129+ JSXExpressionContainer = 112 ,
130+ JSXEmptyExpression = 113 ,
131+ JSXAttribute = 114 ,
132+ JSXSpreadAttribute = 115 ,
133+ JSXIdentifier = 116 ,
134+ JSXSpreadChild = 117 ,
135+ JSXText = 118 ,
136+ TSThisParameter = 119 ,
137+ TSEnumDeclaration = 120 ,
138+ TSEnumBody = 121 ,
139+ TSEnumMember = 122 ,
140+ TSTypeAnnotation = 123 ,
141+ TSLiteralType = 124 ,
142+ TSConditionalType = 125 ,
143+ TSUnionType = 126 ,
144+ TSIntersectionType = 127 ,
145+ TSParenthesizedType = 128 ,
146+ TSTypeOperator = 129 ,
147+ TSArrayType = 130 ,
148+ TSIndexedAccessType = 131 ,
149+ TSTupleType = 132 ,
150+ TSNamedTupleMember = 133 ,
151+ TSOptionalType = 134 ,
152+ TSRestType = 135 ,
153+ TSAnyKeyword = 136 ,
154+ TSStringKeyword = 137 ,
155+ TSBooleanKeyword = 138 ,
156+ TSNumberKeyword = 139 ,
157+ TSNeverKeyword = 140 ,
158+ TSIntrinsicKeyword = 141 ,
159+ TSUnknownKeyword = 142 ,
160+ TSNullKeyword = 143 ,
161+ TSUndefinedKeyword = 144 ,
162+ TSVoidKeyword = 145 ,
163+ TSSymbolKeyword = 146 ,
164+ TSThisType = 147 ,
165+ TSObjectKeyword = 148 ,
166+ TSBigIntKeyword = 149 ,
167+ TSTypeReference = 150 ,
168+ TSQualifiedName = 151 ,
169+ TSTypeParameterInstantiation = 152 ,
170+ TSTypeParameter = 153 ,
171+ TSTypeParameterDeclaration = 154 ,
172+ TSTypeAliasDeclaration = 155 ,
173+ TSClassImplements = 156 ,
174+ TSInterfaceDeclaration = 157 ,
175+ TSInterfaceBody = 158 ,
176+ TSPropertySignature = 159 ,
177+ TSIndexSignature = 160 ,
178+ TSCallSignatureDeclaration = 161 ,
179+ TSMethodSignature = 162 ,
180+ TSConstructSignatureDeclaration = 163 ,
181+ TSIndexSignatureName = 164 ,
182+ TSInterfaceHeritage = 165 ,
183+ TSTypePredicate = 166 ,
184+ TSModuleDeclaration = 167 ,
185+ TSModuleBlock = 168 ,
186+ TSTypeLiteral = 169 ,
187+ TSInferType = 170 ,
188+ TSTypeQuery = 171 ,
189+ TSImportType = 172 ,
190+ TSConstructorType = 173 ,
191+ TSMappedType = 174 ,
192+ TSTemplateLiteralType = 175 ,
193+ TSAsExpression = 176 ,
194+ TSSatisfiesExpression = 177 ,
195+ TSTypeAssertion = 178 ,
196+ TSImportEqualsDeclaration = 179 ,
197+ TSExternalModuleReference = 180 ,
198+ TSNonNullExpression = 181 ,
199+ Decorator = 182 ,
200+ TSExportAssignment = 183 ,
201+ TSNamespaceExportDeclaration = 184 ,
202+ TSInstantiationExpression = 185 ,
203+ JSDocNullableType = 186 ,
204+ JSDocNonNullableType = 187 ,
205+ JSDocUnknownType = 188 ,
207206}
208207
209208/// Untyped AST Node Kind
@@ -303,7 +302,6 @@ pub enum AstKind<'a> {
303302 PropertyDefinition ( & ' a PropertyDefinition < ' a > ) = AstType :: PropertyDefinition as u8 ,
304303 PrivateIdentifier ( & ' a PrivateIdentifier < ' a > ) = AstType :: PrivateIdentifier as u8 ,
305304 StaticBlock ( & ' a StaticBlock < ' a > ) = AstType :: StaticBlock as u8 ,
306- ModuleDeclaration ( & ' a ModuleDeclaration < ' a > ) = AstType :: ModuleDeclaration as u8 ,
307305 AccessorProperty ( & ' a AccessorProperty < ' a > ) = AstType :: AccessorProperty as u8 ,
308306 ImportExpression ( & ' a ImportExpression < ' a > ) = AstType :: ImportExpression as u8 ,
309307 ImportDeclaration ( & ' a ImportDeclaration < ' a > ) = AstType :: ImportDeclaration as u8 ,
@@ -520,7 +518,6 @@ impl GetSpan for AstKind<'_> {
520518 Self :: PropertyDefinition ( it) => it. span ( ) ,
521519 Self :: PrivateIdentifier ( it) => it. span ( ) ,
522520 Self :: StaticBlock ( it) => it. span ( ) ,
523- Self :: ModuleDeclaration ( it) => it. span ( ) ,
524521 Self :: AccessorProperty ( it) => it. span ( ) ,
525522 Self :: ImportExpression ( it) => it. span ( ) ,
526523 Self :: ImportDeclaration ( it) => it. span ( ) ,
@@ -717,7 +714,6 @@ impl GetAddress for AstKind<'_> {
717714 Self :: PropertyDefinition ( it) => Address :: from_ptr ( it) ,
718715 Self :: PrivateIdentifier ( it) => Address :: from_ptr ( it) ,
719716 Self :: StaticBlock ( it) => Address :: from_ptr ( it) ,
720- Self :: ModuleDeclaration ( it) => it. address ( ) ,
721717 Self :: AccessorProperty ( it) => Address :: from_ptr ( it) ,
722718 Self :: ImportExpression ( it) => Address :: from_ptr ( it) ,
723719 Self :: ImportDeclaration ( it) => Address :: from_ptr ( it) ,
@@ -1256,11 +1252,6 @@ impl<'a> AstKind<'a> {
12561252 if let Self :: StaticBlock ( v) = self { Some ( v) } else { None }
12571253 }
12581254
1259- #[ inline]
1260- pub fn as_module_declaration ( self ) -> Option < & ' a ModuleDeclaration < ' a > > {
1261- if let Self :: ModuleDeclaration ( v) = self { Some ( v) } else { None }
1262- }
1263-
12641255 #[ inline]
12651256 pub fn as_accessor_property ( self ) -> Option < & ' a AccessorProperty < ' a > > {
12661257 if let Self :: AccessorProperty ( v) = self { Some ( v) } else { None }
0 commit comments