1#![expect(clippy::match_same_arms)]
5
6use oxc_span::{GetSpanMut, Span};
7
8use crate::ast::js::*;
9use crate::ast::jsx::*;
10use crate::ast::literal::*;
11use crate::ast::ts::*;
12
13impl GetSpanMut for Program<'_> {
14 #[inline]
15 fn span_mut(&mut self) -> &mut Span {
16 &mut self.span
17 }
18}
19
20impl GetSpanMut for Expression<'_> {
21 fn span_mut(&mut self) -> &mut Span {
22 match self {
23 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
24 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
25 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
26 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
27 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
28 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
29 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
30 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
31 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
32 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
33 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
34 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
35 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
36 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
37 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
38 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
39 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
40 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
41 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
42 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
43 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
44 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
45 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
46 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
47 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
48 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
49 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
50 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
51 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
52 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
53 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
54 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
55 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
56 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
57 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
58 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
59 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
60 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
61 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
62 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
63 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
64 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
65 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
66 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
67 }
68 }
69}
70
71impl GetSpanMut for IdentifierName<'_> {
72 #[inline]
73 fn span_mut(&mut self) -> &mut Span {
74 &mut self.span
75 }
76}
77
78impl GetSpanMut for IdentifierReference<'_> {
79 #[inline]
80 fn span_mut(&mut self) -> &mut Span {
81 &mut self.span
82 }
83}
84
85impl GetSpanMut for BindingIdentifier<'_> {
86 #[inline]
87 fn span_mut(&mut self) -> &mut Span {
88 &mut self.span
89 }
90}
91
92impl GetSpanMut for LabelIdentifier<'_> {
93 #[inline]
94 fn span_mut(&mut self) -> &mut Span {
95 &mut self.span
96 }
97}
98
99impl GetSpanMut for ThisExpression {
100 #[inline]
101 fn span_mut(&mut self) -> &mut Span {
102 &mut self.span
103 }
104}
105
106impl GetSpanMut for ArrayExpression<'_> {
107 #[inline]
108 fn span_mut(&mut self) -> &mut Span {
109 &mut self.span
110 }
111}
112
113impl GetSpanMut for ArrayExpressionElement<'_> {
114 fn span_mut(&mut self) -> &mut Span {
115 match self {
116 Self::SpreadElement(it) => GetSpanMut::span_mut(&mut **it),
117 Self::Elision(it) => GetSpanMut::span_mut(&mut **it),
118 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
119 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
120 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
121 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
122 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
123 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
124 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
125 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
126 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
127 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
128 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
129 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
130 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
131 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
132 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
133 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
134 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
135 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
136 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
137 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
138 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
139 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
140 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
141 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
142 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
143 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
144 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
145 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
146 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
147 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
148 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
149 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
150 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
151 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
152 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
153 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
154 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
155 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
156 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
157 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
158 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
159 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
160 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
161 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
162 }
163 }
164}
165
166impl GetSpanMut for Elision {
167 #[inline]
168 fn span_mut(&mut self) -> &mut Span {
169 &mut self.span
170 }
171}
172
173impl GetSpanMut for ObjectExpression<'_> {
174 #[inline]
175 fn span_mut(&mut self) -> &mut Span {
176 &mut self.span
177 }
178}
179
180impl GetSpanMut for ObjectPropertyKind<'_> {
181 fn span_mut(&mut self) -> &mut Span {
182 match self {
183 Self::ObjectProperty(it) => GetSpanMut::span_mut(&mut **it),
184 Self::SpreadProperty(it) => GetSpanMut::span_mut(&mut **it),
185 }
186 }
187}
188
189impl GetSpanMut for ObjectProperty<'_> {
190 #[inline]
191 fn span_mut(&mut self) -> &mut Span {
192 &mut self.span
193 }
194}
195
196impl GetSpanMut for PropertyKey<'_> {
197 fn span_mut(&mut self) -> &mut Span {
198 match self {
199 Self::StaticIdentifier(it) => GetSpanMut::span_mut(&mut **it),
200 Self::PrivateIdentifier(it) => GetSpanMut::span_mut(&mut **it),
201 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
202 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
203 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
204 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
205 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
206 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
207 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
208 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
209 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
210 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
211 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
212 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
213 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
214 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
215 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
216 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
217 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
218 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
219 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
220 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
221 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
222 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
223 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
224 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
225 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
226 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
227 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
228 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
229 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
230 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
231 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
232 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
233 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
234 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
235 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
236 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
237 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
238 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
239 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
240 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
241 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
242 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
243 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
244 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
245 }
246 }
247}
248
249impl GetSpanMut for TemplateLiteral<'_> {
250 #[inline]
251 fn span_mut(&mut self) -> &mut Span {
252 &mut self.span
253 }
254}
255
256impl GetSpanMut for TaggedTemplateExpression<'_> {
257 #[inline]
258 fn span_mut(&mut self) -> &mut Span {
259 &mut self.span
260 }
261}
262
263impl GetSpanMut for TemplateElement<'_> {
264 #[inline]
265 fn span_mut(&mut self) -> &mut Span {
266 &mut self.span
267 }
268}
269
270impl GetSpanMut for MemberExpression<'_> {
271 fn span_mut(&mut self) -> &mut Span {
272 match self {
273 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
274 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
275 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
276 }
277 }
278}
279
280impl GetSpanMut for ComputedMemberExpression<'_> {
281 #[inline]
282 fn span_mut(&mut self) -> &mut Span {
283 &mut self.span
284 }
285}
286
287impl GetSpanMut for StaticMemberExpression<'_> {
288 #[inline]
289 fn span_mut(&mut self) -> &mut Span {
290 &mut self.span
291 }
292}
293
294impl GetSpanMut for PrivateFieldExpression<'_> {
295 #[inline]
296 fn span_mut(&mut self) -> &mut Span {
297 &mut self.span
298 }
299}
300
301impl GetSpanMut for CallExpression<'_> {
302 #[inline]
303 fn span_mut(&mut self) -> &mut Span {
304 &mut self.span
305 }
306}
307
308impl GetSpanMut for NewExpression<'_> {
309 #[inline]
310 fn span_mut(&mut self) -> &mut Span {
311 &mut self.span
312 }
313}
314
315impl GetSpanMut for ImportMeta {
316 #[inline]
317 fn span_mut(&mut self) -> &mut Span {
318 &mut self.span
319 }
320}
321
322impl GetSpanMut for NewTarget {
323 #[inline]
324 fn span_mut(&mut self) -> &mut Span {
325 &mut self.span
326 }
327}
328
329impl GetSpanMut for SpreadElement<'_> {
330 #[inline]
331 fn span_mut(&mut self) -> &mut Span {
332 &mut self.span
333 }
334}
335
336impl GetSpanMut for Argument<'_> {
337 fn span_mut(&mut self) -> &mut Span {
338 match self {
339 Self::SpreadElement(it) => GetSpanMut::span_mut(&mut **it),
340 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
341 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
342 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
343 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
344 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
345 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
346 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
347 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
348 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
349 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
350 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
351 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
352 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
353 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
354 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
355 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
356 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
357 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
358 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
359 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
360 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
361 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
362 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
363 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
364 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
365 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
366 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
367 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
368 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
369 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
370 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
371 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
372 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
373 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
374 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
375 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
376 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
377 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
378 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
379 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
380 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
381 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
382 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
383 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
384 }
385 }
386}
387
388impl GetSpanMut for UpdateExpression<'_> {
389 #[inline]
390 fn span_mut(&mut self) -> &mut Span {
391 &mut self.span
392 }
393}
394
395impl GetSpanMut for UnaryExpression<'_> {
396 #[inline]
397 fn span_mut(&mut self) -> &mut Span {
398 &mut self.span
399 }
400}
401
402impl GetSpanMut for BinaryExpression<'_> {
403 #[inline]
404 fn span_mut(&mut self) -> &mut Span {
405 &mut self.span
406 }
407}
408
409impl GetSpanMut for PrivateInExpression<'_> {
410 #[inline]
411 fn span_mut(&mut self) -> &mut Span {
412 &mut self.span
413 }
414}
415
416impl GetSpanMut for LogicalExpression<'_> {
417 #[inline]
418 fn span_mut(&mut self) -> &mut Span {
419 &mut self.span
420 }
421}
422
423impl GetSpanMut for ConditionalExpression<'_> {
424 #[inline]
425 fn span_mut(&mut self) -> &mut Span {
426 &mut self.span
427 }
428}
429
430impl GetSpanMut for AssignmentExpression<'_> {
431 #[inline]
432 fn span_mut(&mut self) -> &mut Span {
433 &mut self.span
434 }
435}
436
437impl GetSpanMut for AssignmentTarget<'_> {
438 fn span_mut(&mut self) -> &mut Span {
439 match self {
440 Self::AssignmentTargetIdentifier(it) => GetSpanMut::span_mut(&mut **it),
441 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
442 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
443 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
444 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
445 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
446 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
447 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
448 Self::ArrayAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
449 Self::ObjectAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
450 }
451 }
452}
453
454impl GetSpanMut for SimpleAssignmentTarget<'_> {
455 fn span_mut(&mut self) -> &mut Span {
456 match self {
457 Self::AssignmentTargetIdentifier(it) => GetSpanMut::span_mut(&mut **it),
458 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
459 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
460 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
461 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
462 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
463 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
464 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
465 }
466 }
467}
468
469impl GetSpanMut for AssignmentTargetPattern<'_> {
470 fn span_mut(&mut self) -> &mut Span {
471 match self {
472 Self::ArrayAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
473 Self::ObjectAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
474 }
475 }
476}
477
478impl GetSpanMut for ArrayAssignmentTarget<'_> {
479 #[inline]
480 fn span_mut(&mut self) -> &mut Span {
481 &mut self.span
482 }
483}
484
485impl GetSpanMut for ObjectAssignmentTarget<'_> {
486 #[inline]
487 fn span_mut(&mut self) -> &mut Span {
488 &mut self.span
489 }
490}
491
492impl GetSpanMut for AssignmentTargetRest<'_> {
493 #[inline]
494 fn span_mut(&mut self) -> &mut Span {
495 &mut self.span
496 }
497}
498
499impl GetSpanMut for AssignmentTargetMaybeDefault<'_> {
500 fn span_mut(&mut self) -> &mut Span {
501 match self {
502 Self::AssignmentTargetWithDefault(it) => GetSpanMut::span_mut(&mut **it),
503 Self::AssignmentTargetIdentifier(it) => GetSpanMut::span_mut(&mut **it),
504 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
505 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
506 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
507 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
508 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
509 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
510 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
511 Self::ArrayAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
512 Self::ObjectAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
513 }
514 }
515}
516
517impl GetSpanMut for AssignmentTargetWithDefault<'_> {
518 #[inline]
519 fn span_mut(&mut self) -> &mut Span {
520 &mut self.span
521 }
522}
523
524impl GetSpanMut for AssignmentTargetProperty<'_> {
525 fn span_mut(&mut self) -> &mut Span {
526 match self {
527 Self::AssignmentTargetPropertyIdentifier(it) => GetSpanMut::span_mut(&mut **it),
528 Self::AssignmentTargetPropertyProperty(it) => GetSpanMut::span_mut(&mut **it),
529 }
530 }
531}
532
533impl GetSpanMut for AssignmentTargetPropertyIdentifier<'_> {
534 #[inline]
535 fn span_mut(&mut self) -> &mut Span {
536 &mut self.span
537 }
538}
539
540impl GetSpanMut for AssignmentTargetPropertyProperty<'_> {
541 #[inline]
542 fn span_mut(&mut self) -> &mut Span {
543 &mut self.span
544 }
545}
546
547impl GetSpanMut for SequenceExpression<'_> {
548 #[inline]
549 fn span_mut(&mut self) -> &mut Span {
550 &mut self.span
551 }
552}
553
554impl GetSpanMut for Super {
555 #[inline]
556 fn span_mut(&mut self) -> &mut Span {
557 &mut self.span
558 }
559}
560
561impl GetSpanMut for AwaitExpression<'_> {
562 #[inline]
563 fn span_mut(&mut self) -> &mut Span {
564 &mut self.span
565 }
566}
567
568impl GetSpanMut for ChainExpression<'_> {
569 #[inline]
570 fn span_mut(&mut self) -> &mut Span {
571 &mut self.span
572 }
573}
574
575impl GetSpanMut for ChainElement<'_> {
576 fn span_mut(&mut self) -> &mut Span {
577 match self {
578 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
579 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
580 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
581 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
582 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
583 }
584 }
585}
586
587impl GetSpanMut for ParenthesizedExpression<'_> {
588 #[inline]
589 fn span_mut(&mut self) -> &mut Span {
590 &mut self.span
591 }
592}
593
594impl GetSpanMut for Statement<'_> {
595 fn span_mut(&mut self) -> &mut Span {
596 match self {
597 Self::BlockStatement(it) => GetSpanMut::span_mut(&mut **it),
598 Self::BreakStatement(it) => GetSpanMut::span_mut(&mut **it),
599 Self::ContinueStatement(it) => GetSpanMut::span_mut(&mut **it),
600 Self::DebuggerStatement(it) => GetSpanMut::span_mut(&mut **it),
601 Self::DoWhileStatement(it) => GetSpanMut::span_mut(&mut **it),
602 Self::EmptyStatement(it) => GetSpanMut::span_mut(&mut **it),
603 Self::ExpressionStatement(it) => GetSpanMut::span_mut(&mut **it),
604 Self::ForInStatement(it) => GetSpanMut::span_mut(&mut **it),
605 Self::ForOfStatement(it) => GetSpanMut::span_mut(&mut **it),
606 Self::ForStatement(it) => GetSpanMut::span_mut(&mut **it),
607 Self::IfStatement(it) => GetSpanMut::span_mut(&mut **it),
608 Self::LabeledStatement(it) => GetSpanMut::span_mut(&mut **it),
609 Self::ReturnStatement(it) => GetSpanMut::span_mut(&mut **it),
610 Self::SwitchStatement(it) => GetSpanMut::span_mut(&mut **it),
611 Self::ThrowStatement(it) => GetSpanMut::span_mut(&mut **it),
612 Self::TryStatement(it) => GetSpanMut::span_mut(&mut **it),
613 Self::WhileStatement(it) => GetSpanMut::span_mut(&mut **it),
614 Self::WithStatement(it) => GetSpanMut::span_mut(&mut **it),
615 Self::VariableDeclaration(it) => GetSpanMut::span_mut(&mut **it),
616 Self::FunctionDeclaration(it) => GetSpanMut::span_mut(&mut **it),
617 Self::ClassDeclaration(it) => GetSpanMut::span_mut(&mut **it),
618 Self::TSTypeAliasDeclaration(it) => GetSpanMut::span_mut(&mut **it),
619 Self::TSInterfaceDeclaration(it) => GetSpanMut::span_mut(&mut **it),
620 Self::TSEnumDeclaration(it) => GetSpanMut::span_mut(&mut **it),
621 Self::TSExternalModuleDeclaration(it) => GetSpanMut::span_mut(&mut **it),
622 Self::TSNamespaceDeclaration(it) => GetSpanMut::span_mut(&mut **it),
623 Self::TSGlobalDeclaration(it) => GetSpanMut::span_mut(&mut **it),
624 Self::TSImportEqualsDeclaration(it) => GetSpanMut::span_mut(&mut **it),
625 Self::ImportDeclaration(it) => GetSpanMut::span_mut(&mut **it),
626 Self::ExportAllDeclaration(it) => GetSpanMut::span_mut(&mut **it),
627 Self::ExportDefaultDeclaration(it) => GetSpanMut::span_mut(&mut **it),
628 Self::ExportDeclaration(it) => GetSpanMut::span_mut(&mut **it),
629 Self::ExportNamedDeclaration(it) => GetSpanMut::span_mut(&mut **it),
630 Self::ExportFromDeclaration(it) => GetSpanMut::span_mut(&mut **it),
631 Self::TSExportAssignment(it) => GetSpanMut::span_mut(&mut **it),
632 Self::TSNamespaceExportDeclaration(it) => GetSpanMut::span_mut(&mut **it),
633 }
634 }
635}
636
637impl GetSpanMut for Directive<'_> {
638 #[inline]
639 fn span_mut(&mut self) -> &mut Span {
640 &mut self.span
641 }
642}
643
644impl GetSpanMut for Hashbang<'_> {
645 #[inline]
646 fn span_mut(&mut self) -> &mut Span {
647 &mut self.span
648 }
649}
650
651impl GetSpanMut for BlockStatement<'_> {
652 #[inline]
653 fn span_mut(&mut self) -> &mut Span {
654 &mut self.span
655 }
656}
657
658impl GetSpanMut for Declaration<'_> {
659 fn span_mut(&mut self) -> &mut Span {
660 match self {
661 Self::VariableDeclaration(it) => GetSpanMut::span_mut(&mut **it),
662 Self::FunctionDeclaration(it) => GetSpanMut::span_mut(&mut **it),
663 Self::ClassDeclaration(it) => GetSpanMut::span_mut(&mut **it),
664 Self::TSTypeAliasDeclaration(it) => GetSpanMut::span_mut(&mut **it),
665 Self::TSInterfaceDeclaration(it) => GetSpanMut::span_mut(&mut **it),
666 Self::TSEnumDeclaration(it) => GetSpanMut::span_mut(&mut **it),
667 Self::TSExternalModuleDeclaration(it) => GetSpanMut::span_mut(&mut **it),
668 Self::TSNamespaceDeclaration(it) => GetSpanMut::span_mut(&mut **it),
669 Self::TSGlobalDeclaration(it) => GetSpanMut::span_mut(&mut **it),
670 Self::TSImportEqualsDeclaration(it) => GetSpanMut::span_mut(&mut **it),
671 }
672 }
673}
674
675impl GetSpanMut for VariableDeclaration<'_> {
676 #[inline]
677 fn span_mut(&mut self) -> &mut Span {
678 &mut self.span
679 }
680}
681
682impl GetSpanMut for VariableDeclarator<'_> {
683 #[inline]
684 fn span_mut(&mut self) -> &mut Span {
685 &mut self.span
686 }
687}
688
689impl GetSpanMut for EmptyStatement {
690 #[inline]
691 fn span_mut(&mut self) -> &mut Span {
692 &mut self.span
693 }
694}
695
696impl GetSpanMut for ExpressionStatement<'_> {
697 #[inline]
698 fn span_mut(&mut self) -> &mut Span {
699 &mut self.span
700 }
701}
702
703impl GetSpanMut for IfStatement<'_> {
704 #[inline]
705 fn span_mut(&mut self) -> &mut Span {
706 &mut self.span
707 }
708}
709
710impl GetSpanMut for DoWhileStatement<'_> {
711 #[inline]
712 fn span_mut(&mut self) -> &mut Span {
713 &mut self.span
714 }
715}
716
717impl GetSpanMut for WhileStatement<'_> {
718 #[inline]
719 fn span_mut(&mut self) -> &mut Span {
720 &mut self.span
721 }
722}
723
724impl GetSpanMut for ForStatement<'_> {
725 #[inline]
726 fn span_mut(&mut self) -> &mut Span {
727 &mut self.span
728 }
729}
730
731impl GetSpanMut for ForStatementInit<'_> {
732 fn span_mut(&mut self) -> &mut Span {
733 match self {
734 Self::VariableDeclaration(it) => GetSpanMut::span_mut(&mut **it),
735 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
736 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
737 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
738 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
739 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
740 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
741 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
742 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
743 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
744 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
745 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
746 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
747 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
748 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
749 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
750 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
751 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
752 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
753 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
754 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
755 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
756 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
757 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
758 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
759 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
760 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
761 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
762 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
763 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
764 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
765 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
766 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
767 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
768 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
769 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
770 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
771 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
772 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
773 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
774 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
775 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
776 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
777 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
778 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
779 }
780 }
781}
782
783impl GetSpanMut for ForInStatement<'_> {
784 #[inline]
785 fn span_mut(&mut self) -> &mut Span {
786 &mut self.span
787 }
788}
789
790impl GetSpanMut for ForStatementLeft<'_> {
791 fn span_mut(&mut self) -> &mut Span {
792 match self {
793 Self::VariableDeclaration(it) => GetSpanMut::span_mut(&mut **it),
794 Self::AssignmentTargetIdentifier(it) => GetSpanMut::span_mut(&mut **it),
795 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
796 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
797 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
798 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
799 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
800 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
801 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
802 Self::ArrayAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
803 Self::ObjectAssignmentTarget(it) => GetSpanMut::span_mut(&mut **it),
804 }
805 }
806}
807
808impl GetSpanMut for ForOfStatement<'_> {
809 #[inline]
810 fn span_mut(&mut self) -> &mut Span {
811 &mut self.span
812 }
813}
814
815impl GetSpanMut for ContinueStatement<'_> {
816 #[inline]
817 fn span_mut(&mut self) -> &mut Span {
818 &mut self.span
819 }
820}
821
822impl GetSpanMut for BreakStatement<'_> {
823 #[inline]
824 fn span_mut(&mut self) -> &mut Span {
825 &mut self.span
826 }
827}
828
829impl GetSpanMut for ReturnStatement<'_> {
830 #[inline]
831 fn span_mut(&mut self) -> &mut Span {
832 &mut self.span
833 }
834}
835
836impl GetSpanMut for WithStatement<'_> {
837 #[inline]
838 fn span_mut(&mut self) -> &mut Span {
839 &mut self.span
840 }
841}
842
843impl GetSpanMut for SwitchStatement<'_> {
844 #[inline]
845 fn span_mut(&mut self) -> &mut Span {
846 &mut self.span
847 }
848}
849
850impl GetSpanMut for SwitchCase<'_> {
851 #[inline]
852 fn span_mut(&mut self) -> &mut Span {
853 &mut self.span
854 }
855}
856
857impl GetSpanMut for LabeledStatement<'_> {
858 #[inline]
859 fn span_mut(&mut self) -> &mut Span {
860 &mut self.span
861 }
862}
863
864impl GetSpanMut for ThrowStatement<'_> {
865 #[inline]
866 fn span_mut(&mut self) -> &mut Span {
867 &mut self.span
868 }
869}
870
871impl GetSpanMut for TryStatement<'_> {
872 #[inline]
873 fn span_mut(&mut self) -> &mut Span {
874 &mut self.span
875 }
876}
877
878impl GetSpanMut for CatchClause<'_> {
879 #[inline]
880 fn span_mut(&mut self) -> &mut Span {
881 &mut self.span
882 }
883}
884
885impl GetSpanMut for CatchParameter<'_> {
886 #[inline]
887 fn span_mut(&mut self) -> &mut Span {
888 &mut self.span
889 }
890}
891
892impl GetSpanMut for DebuggerStatement {
893 #[inline]
894 fn span_mut(&mut self) -> &mut Span {
895 &mut self.span
896 }
897}
898
899impl GetSpanMut for BindingPattern<'_> {
900 fn span_mut(&mut self) -> &mut Span {
901 match self {
902 Self::BindingIdentifier(it) => GetSpanMut::span_mut(&mut **it),
903 Self::ObjectPattern(it) => GetSpanMut::span_mut(&mut **it),
904 Self::ArrayPattern(it) => GetSpanMut::span_mut(&mut **it),
905 Self::AssignmentPattern(it) => GetSpanMut::span_mut(&mut **it),
906 }
907 }
908}
909
910impl GetSpanMut for AssignmentPattern<'_> {
911 #[inline]
912 fn span_mut(&mut self) -> &mut Span {
913 &mut self.span
914 }
915}
916
917impl GetSpanMut for ObjectPattern<'_> {
918 #[inline]
919 fn span_mut(&mut self) -> &mut Span {
920 &mut self.span
921 }
922}
923
924impl GetSpanMut for BindingProperty<'_> {
925 #[inline]
926 fn span_mut(&mut self) -> &mut Span {
927 &mut self.span
928 }
929}
930
931impl GetSpanMut for ArrayPattern<'_> {
932 #[inline]
933 fn span_mut(&mut self) -> &mut Span {
934 &mut self.span
935 }
936}
937
938impl GetSpanMut for BindingRestElement<'_> {
939 #[inline]
940 fn span_mut(&mut self) -> &mut Span {
941 &mut self.span
942 }
943}
944
945impl GetSpanMut for Function<'_> {
946 #[inline]
947 fn span_mut(&mut self) -> &mut Span {
948 &mut self.span
949 }
950}
951
952impl GetSpanMut for FormalParameters<'_> {
953 #[inline]
954 fn span_mut(&mut self) -> &mut Span {
955 &mut self.span
956 }
957}
958
959impl GetSpanMut for FormalParameter<'_> {
960 #[inline]
961 fn span_mut(&mut self) -> &mut Span {
962 &mut self.span
963 }
964}
965
966impl GetSpanMut for FormalParameterRest<'_> {
967 #[inline]
968 fn span_mut(&mut self) -> &mut Span {
969 &mut self.span
970 }
971}
972
973impl GetSpanMut for FunctionBody<'_> {
974 #[inline]
975 fn span_mut(&mut self) -> &mut Span {
976 &mut self.span
977 }
978}
979
980impl GetSpanMut for ArrowFunctionBody<'_> {
981 fn span_mut(&mut self) -> &mut Span {
982 match self {
983 Self::FunctionBody(it) => GetSpanMut::span_mut(&mut **it),
984 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
985 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
986 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
987 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
988 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
989 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
990 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
991 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
992 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
993 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
994 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
995 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
996 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
997 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
998 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
999 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
1000 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
1001 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
1002 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
1003 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
1004 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
1005 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
1006 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
1007 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
1008 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
1009 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
1010 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
1011 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
1012 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
1013 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
1014 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
1015 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
1016 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
1017 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
1018 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
1019 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
1020 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
1021 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
1022 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
1023 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
1024 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
1025 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1026 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1027 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
1028 }
1029 }
1030}
1031
1032impl GetSpanMut for ArrowFunctionExpression<'_> {
1033 #[inline]
1034 fn span_mut(&mut self) -> &mut Span {
1035 &mut self.span
1036 }
1037}
1038
1039impl GetSpanMut for YieldExpression<'_> {
1040 #[inline]
1041 fn span_mut(&mut self) -> &mut Span {
1042 &mut self.span
1043 }
1044}
1045
1046impl GetSpanMut for Class<'_> {
1047 #[inline]
1048 fn span_mut(&mut self) -> &mut Span {
1049 &mut self.span
1050 }
1051}
1052
1053impl GetSpanMut for ClassBody<'_> {
1054 #[inline]
1055 fn span_mut(&mut self) -> &mut Span {
1056 &mut self.span
1057 }
1058}
1059
1060impl GetSpanMut for ClassElement<'_> {
1061 fn span_mut(&mut self) -> &mut Span {
1062 match self {
1063 Self::StaticBlock(it) => GetSpanMut::span_mut(&mut **it),
1064 Self::MethodDefinition(it) => GetSpanMut::span_mut(&mut **it),
1065 Self::PropertyDefinition(it) => GetSpanMut::span_mut(&mut **it),
1066 Self::AccessorProperty(it) => GetSpanMut::span_mut(&mut **it),
1067 Self::TSIndexSignature(it) => GetSpanMut::span_mut(&mut **it),
1068 }
1069 }
1070}
1071
1072impl GetSpanMut for MethodDefinition<'_> {
1073 #[inline]
1074 fn span_mut(&mut self) -> &mut Span {
1075 &mut self.span
1076 }
1077}
1078
1079impl GetSpanMut for PropertyDefinition<'_> {
1080 #[inline]
1081 fn span_mut(&mut self) -> &mut Span {
1082 &mut self.span
1083 }
1084}
1085
1086impl GetSpanMut for PrivateIdentifier<'_> {
1087 #[inline]
1088 fn span_mut(&mut self) -> &mut Span {
1089 &mut self.span
1090 }
1091}
1092
1093impl GetSpanMut for StaticBlock<'_> {
1094 #[inline]
1095 fn span_mut(&mut self) -> &mut Span {
1096 &mut self.span
1097 }
1098}
1099
1100impl GetSpanMut for ModuleDeclaration<'_> {
1101 fn span_mut(&mut self) -> &mut Span {
1102 match self {
1103 Self::ImportDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1104 Self::ExportAllDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1105 Self::ExportDefaultDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1106 Self::ExportDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1107 Self::ExportNamedDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1108 Self::ExportFromDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1109 Self::TSExportAssignment(it) => GetSpanMut::span_mut(&mut **it),
1110 Self::TSNamespaceExportDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1111 }
1112 }
1113}
1114
1115impl GetSpanMut for AccessorProperty<'_> {
1116 #[inline]
1117 fn span_mut(&mut self) -> &mut Span {
1118 &mut self.span
1119 }
1120}
1121
1122impl GetSpanMut for ImportExpression<'_> {
1123 #[inline]
1124 fn span_mut(&mut self) -> &mut Span {
1125 &mut self.span
1126 }
1127}
1128
1129impl GetSpanMut for ImportDeclaration<'_> {
1130 #[inline]
1131 fn span_mut(&mut self) -> &mut Span {
1132 &mut self.span
1133 }
1134}
1135
1136impl GetSpanMut for ImportDeclarationSpecifier<'_> {
1137 fn span_mut(&mut self) -> &mut Span {
1138 match self {
1139 Self::ImportSpecifier(it) => GetSpanMut::span_mut(&mut **it),
1140 Self::ImportDefaultSpecifier(it) => GetSpanMut::span_mut(&mut **it),
1141 Self::ImportNamespaceSpecifier(it) => GetSpanMut::span_mut(&mut **it),
1142 }
1143 }
1144}
1145
1146impl GetSpanMut for ImportSpecifier<'_> {
1147 #[inline]
1148 fn span_mut(&mut self) -> &mut Span {
1149 &mut self.span
1150 }
1151}
1152
1153impl GetSpanMut for ImportDefaultSpecifier<'_> {
1154 #[inline]
1155 fn span_mut(&mut self) -> &mut Span {
1156 &mut self.span
1157 }
1158}
1159
1160impl GetSpanMut for ImportNamespaceSpecifier<'_> {
1161 #[inline]
1162 fn span_mut(&mut self) -> &mut Span {
1163 &mut self.span
1164 }
1165}
1166
1167impl GetSpanMut for WithClause<'_> {
1168 #[inline]
1169 fn span_mut(&mut self) -> &mut Span {
1170 &mut self.span
1171 }
1172}
1173
1174impl GetSpanMut for ImportAttribute<'_> {
1175 #[inline]
1176 fn span_mut(&mut self) -> &mut Span {
1177 &mut self.span
1178 }
1179}
1180
1181impl GetSpanMut for ImportAttributeKey<'_> {
1182 fn span_mut(&mut self) -> &mut Span {
1183 match self {
1184 Self::Identifier(it) => GetSpanMut::span_mut(it),
1185 Self::StringLiteral(it) => GetSpanMut::span_mut(it),
1186 }
1187 }
1188}
1189
1190impl GetSpanMut for ExportDeclaration<'_> {
1191 #[inline]
1192 fn span_mut(&mut self) -> &mut Span {
1193 &mut self.span
1194 }
1195}
1196
1197impl GetSpanMut for ExportNamedDeclaration<'_> {
1198 #[inline]
1199 fn span_mut(&mut self) -> &mut Span {
1200 &mut self.span
1201 }
1202}
1203
1204impl GetSpanMut for ExportFromDeclaration<'_> {
1205 #[inline]
1206 fn span_mut(&mut self) -> &mut Span {
1207 &mut self.span
1208 }
1209}
1210
1211impl GetSpanMut for ExportDefaultDeclaration<'_> {
1212 #[inline]
1213 fn span_mut(&mut self) -> &mut Span {
1214 &mut self.span
1215 }
1216}
1217
1218impl GetSpanMut for ExportAllDeclaration<'_> {
1219 #[inline]
1220 fn span_mut(&mut self) -> &mut Span {
1221 &mut self.span
1222 }
1223}
1224
1225impl GetSpanMut for ExportSpecifier<'_> {
1226 #[inline]
1227 fn span_mut(&mut self) -> &mut Span {
1228 &mut self.span
1229 }
1230}
1231
1232impl GetSpanMut for ExportDefaultDeclarationKind<'_> {
1233 fn span_mut(&mut self) -> &mut Span {
1234 match self {
1235 Self::FunctionDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1236 Self::ClassDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1237 Self::TSInterfaceDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1238 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
1239 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
1240 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
1241 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
1242 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
1243 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
1244 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
1245 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
1246 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
1247 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
1248 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
1249 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
1250 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
1251 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
1252 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
1253 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
1254 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
1255 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
1256 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
1257 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
1258 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
1259 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
1260 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
1261 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
1262 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
1263 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
1264 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
1265 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
1266 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
1267 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
1268 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
1269 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
1270 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
1271 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
1272 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
1273 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
1274 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
1275 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
1276 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
1277 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
1278 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
1279 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1280 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1281 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
1282 }
1283 }
1284}
1285
1286impl GetSpanMut for ModuleExportName<'_> {
1287 fn span_mut(&mut self) -> &mut Span {
1288 match self {
1289 Self::IdentifierName(it) => GetSpanMut::span_mut(it),
1290 Self::IdentifierReference(it) => GetSpanMut::span_mut(it),
1291 Self::StringLiteral(it) => GetSpanMut::span_mut(it),
1292 }
1293 }
1294}
1295
1296impl GetSpanMut for V8IntrinsicExpression<'_> {
1297 #[inline]
1298 fn span_mut(&mut self) -> &mut Span {
1299 &mut self.span
1300 }
1301}
1302
1303impl GetSpanMut for BooleanLiteral {
1304 #[inline]
1305 fn span_mut(&mut self) -> &mut Span {
1306 &mut self.span
1307 }
1308}
1309
1310impl GetSpanMut for NullLiteral {
1311 #[inline]
1312 fn span_mut(&mut self) -> &mut Span {
1313 &mut self.span
1314 }
1315}
1316
1317impl GetSpanMut for NumericLiteral<'_> {
1318 #[inline]
1319 fn span_mut(&mut self) -> &mut Span {
1320 &mut self.span
1321 }
1322}
1323
1324impl GetSpanMut for StringLiteral<'_> {
1325 #[inline]
1326 fn span_mut(&mut self) -> &mut Span {
1327 &mut self.span
1328 }
1329}
1330
1331impl GetSpanMut for BigIntLiteral<'_> {
1332 #[inline]
1333 fn span_mut(&mut self) -> &mut Span {
1334 &mut self.span
1335 }
1336}
1337
1338impl GetSpanMut for RegExpLiteral<'_> {
1339 #[inline]
1340 fn span_mut(&mut self) -> &mut Span {
1341 &mut self.span
1342 }
1343}
1344
1345impl GetSpanMut for JSXElement<'_> {
1346 #[inline]
1347 fn span_mut(&mut self) -> &mut Span {
1348 &mut self.span
1349 }
1350}
1351
1352impl GetSpanMut for JSXOpeningElement<'_> {
1353 #[inline]
1354 fn span_mut(&mut self) -> &mut Span {
1355 &mut self.span
1356 }
1357}
1358
1359impl GetSpanMut for JSXClosingElement<'_> {
1360 #[inline]
1361 fn span_mut(&mut self) -> &mut Span {
1362 &mut self.span
1363 }
1364}
1365
1366impl GetSpanMut for JSXFragment<'_> {
1367 #[inline]
1368 fn span_mut(&mut self) -> &mut Span {
1369 &mut self.span
1370 }
1371}
1372
1373impl GetSpanMut for JSXOpeningFragment {
1374 #[inline]
1375 fn span_mut(&mut self) -> &mut Span {
1376 &mut self.span
1377 }
1378}
1379
1380impl GetSpanMut for JSXClosingFragment {
1381 #[inline]
1382 fn span_mut(&mut self) -> &mut Span {
1383 &mut self.span
1384 }
1385}
1386
1387impl GetSpanMut for JSXElementName<'_> {
1388 fn span_mut(&mut self) -> &mut Span {
1389 match self {
1390 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
1391 Self::IdentifierReference(it) => GetSpanMut::span_mut(&mut **it),
1392 Self::NamespacedName(it) => GetSpanMut::span_mut(&mut **it),
1393 Self::MemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1394 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
1395 }
1396 }
1397}
1398
1399impl GetSpanMut for JSXNamespacedName<'_> {
1400 #[inline]
1401 fn span_mut(&mut self) -> &mut Span {
1402 &mut self.span
1403 }
1404}
1405
1406impl GetSpanMut for JSXMemberExpression<'_> {
1407 #[inline]
1408 fn span_mut(&mut self) -> &mut Span {
1409 &mut self.span
1410 }
1411}
1412
1413impl GetSpanMut for JSXMemberExpressionObject<'_> {
1414 fn span_mut(&mut self) -> &mut Span {
1415 match self {
1416 Self::IdentifierReference(it) => GetSpanMut::span_mut(&mut **it),
1417 Self::MemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1418 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
1419 }
1420 }
1421}
1422
1423impl GetSpanMut for JSXExpressionContainer<'_> {
1424 #[inline]
1425 fn span_mut(&mut self) -> &mut Span {
1426 &mut self.span
1427 }
1428}
1429
1430impl GetSpanMut for JSXExpression<'_> {
1431 fn span_mut(&mut self) -> &mut Span {
1432 match self {
1433 Self::EmptyExpression(it) => GetSpanMut::span_mut(&mut **it),
1434 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
1435 Self::NullLiteral(it) => GetSpanMut::span_mut(&mut **it),
1436 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
1437 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
1438 Self::RegExpLiteral(it) => GetSpanMut::span_mut(&mut **it),
1439 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
1440 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
1441 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
1442 Self::Super(it) => GetSpanMut::span_mut(&mut **it),
1443 Self::ArrayExpression(it) => GetSpanMut::span_mut(&mut **it),
1444 Self::ArrowFunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
1445 Self::AssignmentExpression(it) => GetSpanMut::span_mut(&mut **it),
1446 Self::AwaitExpression(it) => GetSpanMut::span_mut(&mut **it),
1447 Self::BinaryExpression(it) => GetSpanMut::span_mut(&mut **it),
1448 Self::CallExpression(it) => GetSpanMut::span_mut(&mut **it),
1449 Self::ChainExpression(it) => GetSpanMut::span_mut(&mut **it),
1450 Self::ClassExpression(it) => GetSpanMut::span_mut(&mut **it),
1451 Self::ConditionalExpression(it) => GetSpanMut::span_mut(&mut **it),
1452 Self::FunctionExpression(it) => GetSpanMut::span_mut(&mut **it),
1453 Self::ImportExpression(it) => GetSpanMut::span_mut(&mut **it),
1454 Self::LogicalExpression(it) => GetSpanMut::span_mut(&mut **it),
1455 Self::NewExpression(it) => GetSpanMut::span_mut(&mut **it),
1456 Self::ObjectExpression(it) => GetSpanMut::span_mut(&mut **it),
1457 Self::ParenthesizedExpression(it) => GetSpanMut::span_mut(&mut **it),
1458 Self::SequenceExpression(it) => GetSpanMut::span_mut(&mut **it),
1459 Self::TaggedTemplateExpression(it) => GetSpanMut::span_mut(&mut **it),
1460 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
1461 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
1462 Self::UpdateExpression(it) => GetSpanMut::span_mut(&mut **it),
1463 Self::YieldExpression(it) => GetSpanMut::span_mut(&mut **it),
1464 Self::PrivateInExpression(it) => GetSpanMut::span_mut(&mut **it),
1465 Self::ImportMeta(it) => GetSpanMut::span_mut(&mut **it),
1466 Self::NewTarget(it) => GetSpanMut::span_mut(&mut **it),
1467 Self::JSXElement(it) => GetSpanMut::span_mut(&mut **it),
1468 Self::JSXFragment(it) => GetSpanMut::span_mut(&mut **it),
1469 Self::TSAsExpression(it) => GetSpanMut::span_mut(&mut **it),
1470 Self::TSSatisfiesExpression(it) => GetSpanMut::span_mut(&mut **it),
1471 Self::TSTypeAssertion(it) => GetSpanMut::span_mut(&mut **it),
1472 Self::TSNonNullExpression(it) => GetSpanMut::span_mut(&mut **it),
1473 Self::TSInstantiationExpression(it) => GetSpanMut::span_mut(&mut **it),
1474 Self::V8IntrinsicExpression(it) => GetSpanMut::span_mut(&mut **it),
1475 Self::ComputedMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1476 Self::StaticMemberExpression(it) => GetSpanMut::span_mut(&mut **it),
1477 Self::PrivateFieldExpression(it) => GetSpanMut::span_mut(&mut **it),
1478 }
1479 }
1480}
1481
1482impl GetSpanMut for JSXEmptyExpression {
1483 #[inline]
1484 fn span_mut(&mut self) -> &mut Span {
1485 &mut self.span
1486 }
1487}
1488
1489impl GetSpanMut for JSXAttributeItem<'_> {
1490 fn span_mut(&mut self) -> &mut Span {
1491 match self {
1492 Self::Attribute(it) => GetSpanMut::span_mut(&mut **it),
1493 Self::SpreadAttribute(it) => GetSpanMut::span_mut(&mut **it),
1494 }
1495 }
1496}
1497
1498impl GetSpanMut for JSXAttribute<'_> {
1499 #[inline]
1500 fn span_mut(&mut self) -> &mut Span {
1501 &mut self.span
1502 }
1503}
1504
1505impl GetSpanMut for JSXSpreadAttribute<'_> {
1506 #[inline]
1507 fn span_mut(&mut self) -> &mut Span {
1508 &mut self.span
1509 }
1510}
1511
1512impl GetSpanMut for JSXAttributeName<'_> {
1513 fn span_mut(&mut self) -> &mut Span {
1514 match self {
1515 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
1516 Self::NamespacedName(it) => GetSpanMut::span_mut(&mut **it),
1517 }
1518 }
1519}
1520
1521impl GetSpanMut for JSXAttributeValue<'_> {
1522 fn span_mut(&mut self) -> &mut Span {
1523 match self {
1524 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
1525 Self::ExpressionContainer(it) => GetSpanMut::span_mut(&mut **it),
1526 Self::Element(it) => GetSpanMut::span_mut(&mut **it),
1527 Self::Fragment(it) => GetSpanMut::span_mut(&mut **it),
1528 }
1529 }
1530}
1531
1532impl GetSpanMut for JSXIdentifier<'_> {
1533 #[inline]
1534 fn span_mut(&mut self) -> &mut Span {
1535 &mut self.span
1536 }
1537}
1538
1539impl GetSpanMut for JSXChild<'_> {
1540 fn span_mut(&mut self) -> &mut Span {
1541 match self {
1542 Self::Text(it) => GetSpanMut::span_mut(&mut **it),
1543 Self::Element(it) => GetSpanMut::span_mut(&mut **it),
1544 Self::Fragment(it) => GetSpanMut::span_mut(&mut **it),
1545 Self::ExpressionContainer(it) => GetSpanMut::span_mut(&mut **it),
1546 Self::Spread(it) => GetSpanMut::span_mut(&mut **it),
1547 }
1548 }
1549}
1550
1551impl GetSpanMut for JSXSpreadChild<'_> {
1552 #[inline]
1553 fn span_mut(&mut self) -> &mut Span {
1554 &mut self.span
1555 }
1556}
1557
1558impl GetSpanMut for JSXText<'_> {
1559 #[inline]
1560 fn span_mut(&mut self) -> &mut Span {
1561 &mut self.span
1562 }
1563}
1564
1565impl GetSpanMut for TSThisParameter<'_> {
1566 #[inline]
1567 fn span_mut(&mut self) -> &mut Span {
1568 &mut self.span
1569 }
1570}
1571
1572impl GetSpanMut for TSEnumDeclaration<'_> {
1573 #[inline]
1574 fn span_mut(&mut self) -> &mut Span {
1575 &mut self.span
1576 }
1577}
1578
1579impl GetSpanMut for TSEnumBody<'_> {
1580 #[inline]
1581 fn span_mut(&mut self) -> &mut Span {
1582 &mut self.span
1583 }
1584}
1585
1586impl GetSpanMut for TSEnumMember<'_> {
1587 #[inline]
1588 fn span_mut(&mut self) -> &mut Span {
1589 &mut self.span
1590 }
1591}
1592
1593impl GetSpanMut for TSEnumMemberName<'_> {
1594 fn span_mut(&mut self) -> &mut Span {
1595 match self {
1596 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
1597 Self::String(it) => GetSpanMut::span_mut(&mut **it),
1598 Self::ComputedString(it) => GetSpanMut::span_mut(&mut **it),
1599 Self::ComputedTemplateString(it) => GetSpanMut::span_mut(&mut **it),
1600 }
1601 }
1602}
1603
1604impl GetSpanMut for TSTypeAnnotation<'_> {
1605 #[inline]
1606 fn span_mut(&mut self) -> &mut Span {
1607 &mut self.span
1608 }
1609}
1610
1611impl GetSpanMut for TSLiteralType<'_> {
1612 #[inline]
1613 fn span_mut(&mut self) -> &mut Span {
1614 &mut self.span
1615 }
1616}
1617
1618impl GetSpanMut for TSLiteral<'_> {
1619 fn span_mut(&mut self) -> &mut Span {
1620 match self {
1621 Self::BooleanLiteral(it) => GetSpanMut::span_mut(&mut **it),
1622 Self::NumericLiteral(it) => GetSpanMut::span_mut(&mut **it),
1623 Self::BigIntLiteral(it) => GetSpanMut::span_mut(&mut **it),
1624 Self::StringLiteral(it) => GetSpanMut::span_mut(&mut **it),
1625 Self::TemplateLiteral(it) => GetSpanMut::span_mut(&mut **it),
1626 Self::UnaryExpression(it) => GetSpanMut::span_mut(&mut **it),
1627 }
1628 }
1629}
1630
1631impl GetSpanMut for TSType<'_> {
1632 fn span_mut(&mut self) -> &mut Span {
1633 match self {
1634 Self::TSAnyKeyword(it) => GetSpanMut::span_mut(&mut **it),
1635 Self::TSBigIntKeyword(it) => GetSpanMut::span_mut(&mut **it),
1636 Self::TSBooleanKeyword(it) => GetSpanMut::span_mut(&mut **it),
1637 Self::TSIntrinsicKeyword(it) => GetSpanMut::span_mut(&mut **it),
1638 Self::TSNeverKeyword(it) => GetSpanMut::span_mut(&mut **it),
1639 Self::TSNullKeyword(it) => GetSpanMut::span_mut(&mut **it),
1640 Self::TSNumberKeyword(it) => GetSpanMut::span_mut(&mut **it),
1641 Self::TSObjectKeyword(it) => GetSpanMut::span_mut(&mut **it),
1642 Self::TSStringKeyword(it) => GetSpanMut::span_mut(&mut **it),
1643 Self::TSSymbolKeyword(it) => GetSpanMut::span_mut(&mut **it),
1644 Self::TSUndefinedKeyword(it) => GetSpanMut::span_mut(&mut **it),
1645 Self::TSUnknownKeyword(it) => GetSpanMut::span_mut(&mut **it),
1646 Self::TSVoidKeyword(it) => GetSpanMut::span_mut(&mut **it),
1647 Self::TSArrayType(it) => GetSpanMut::span_mut(&mut **it),
1648 Self::TSConditionalType(it) => GetSpanMut::span_mut(&mut **it),
1649 Self::TSConstructorType(it) => GetSpanMut::span_mut(&mut **it),
1650 Self::TSFunctionType(it) => GetSpanMut::span_mut(&mut **it),
1651 Self::TSImportType(it) => GetSpanMut::span_mut(&mut **it),
1652 Self::TSIndexedAccessType(it) => GetSpanMut::span_mut(&mut **it),
1653 Self::TSInferType(it) => GetSpanMut::span_mut(&mut **it),
1654 Self::TSIntersectionType(it) => GetSpanMut::span_mut(&mut **it),
1655 Self::TSLiteralType(it) => GetSpanMut::span_mut(&mut **it),
1656 Self::TSMappedType(it) => GetSpanMut::span_mut(&mut **it),
1657 Self::TSNamedTupleMember(it) => GetSpanMut::span_mut(&mut **it),
1658 Self::TSTemplateLiteralType(it) => GetSpanMut::span_mut(&mut **it),
1659 Self::TSThisType(it) => GetSpanMut::span_mut(&mut **it),
1660 Self::TSTupleType(it) => GetSpanMut::span_mut(&mut **it),
1661 Self::TSTypeLiteral(it) => GetSpanMut::span_mut(&mut **it),
1662 Self::TSTypeOperatorType(it) => GetSpanMut::span_mut(&mut **it),
1663 Self::TSTypePredicate(it) => GetSpanMut::span_mut(&mut **it),
1664 Self::TSTypeQuery(it) => GetSpanMut::span_mut(&mut **it),
1665 Self::TSTypeReference(it) => GetSpanMut::span_mut(&mut **it),
1666 Self::TSUnionType(it) => GetSpanMut::span_mut(&mut **it),
1667 Self::TSParenthesizedType(it) => GetSpanMut::span_mut(&mut **it),
1668 Self::JSDocNullableType(it) => GetSpanMut::span_mut(&mut **it),
1669 Self::JSDocNonNullableType(it) => GetSpanMut::span_mut(&mut **it),
1670 Self::JSDocUnknownType(it) => GetSpanMut::span_mut(&mut **it),
1671 }
1672 }
1673}
1674
1675impl GetSpanMut for TSConditionalType<'_> {
1676 #[inline]
1677 fn span_mut(&mut self) -> &mut Span {
1678 &mut self.span
1679 }
1680}
1681
1682impl GetSpanMut for TSUnionType<'_> {
1683 #[inline]
1684 fn span_mut(&mut self) -> &mut Span {
1685 &mut self.span
1686 }
1687}
1688
1689impl GetSpanMut for TSIntersectionType<'_> {
1690 #[inline]
1691 fn span_mut(&mut self) -> &mut Span {
1692 &mut self.span
1693 }
1694}
1695
1696impl GetSpanMut for TSParenthesizedType<'_> {
1697 #[inline]
1698 fn span_mut(&mut self) -> &mut Span {
1699 &mut self.span
1700 }
1701}
1702
1703impl GetSpanMut for TSTypeOperator<'_> {
1704 #[inline]
1705 fn span_mut(&mut self) -> &mut Span {
1706 &mut self.span
1707 }
1708}
1709
1710impl GetSpanMut for TSArrayType<'_> {
1711 #[inline]
1712 fn span_mut(&mut self) -> &mut Span {
1713 &mut self.span
1714 }
1715}
1716
1717impl GetSpanMut for TSIndexedAccessType<'_> {
1718 #[inline]
1719 fn span_mut(&mut self) -> &mut Span {
1720 &mut self.span
1721 }
1722}
1723
1724impl GetSpanMut for TSTupleType<'_> {
1725 #[inline]
1726 fn span_mut(&mut self) -> &mut Span {
1727 &mut self.span
1728 }
1729}
1730
1731impl GetSpanMut for TSNamedTupleMember<'_> {
1732 #[inline]
1733 fn span_mut(&mut self) -> &mut Span {
1734 &mut self.span
1735 }
1736}
1737
1738impl GetSpanMut for TSOptionalType<'_> {
1739 #[inline]
1740 fn span_mut(&mut self) -> &mut Span {
1741 &mut self.span
1742 }
1743}
1744
1745impl GetSpanMut for TSRestType<'_> {
1746 #[inline]
1747 fn span_mut(&mut self) -> &mut Span {
1748 &mut self.span
1749 }
1750}
1751
1752impl GetSpanMut for TSTupleElement<'_> {
1753 fn span_mut(&mut self) -> &mut Span {
1754 match self {
1755 Self::TSOptionalType(it) => GetSpanMut::span_mut(&mut **it),
1756 Self::TSRestType(it) => GetSpanMut::span_mut(&mut **it),
1757 Self::TSAnyKeyword(it) => GetSpanMut::span_mut(&mut **it),
1758 Self::TSBigIntKeyword(it) => GetSpanMut::span_mut(&mut **it),
1759 Self::TSBooleanKeyword(it) => GetSpanMut::span_mut(&mut **it),
1760 Self::TSIntrinsicKeyword(it) => GetSpanMut::span_mut(&mut **it),
1761 Self::TSNeverKeyword(it) => GetSpanMut::span_mut(&mut **it),
1762 Self::TSNullKeyword(it) => GetSpanMut::span_mut(&mut **it),
1763 Self::TSNumberKeyword(it) => GetSpanMut::span_mut(&mut **it),
1764 Self::TSObjectKeyword(it) => GetSpanMut::span_mut(&mut **it),
1765 Self::TSStringKeyword(it) => GetSpanMut::span_mut(&mut **it),
1766 Self::TSSymbolKeyword(it) => GetSpanMut::span_mut(&mut **it),
1767 Self::TSUndefinedKeyword(it) => GetSpanMut::span_mut(&mut **it),
1768 Self::TSUnknownKeyword(it) => GetSpanMut::span_mut(&mut **it),
1769 Self::TSVoidKeyword(it) => GetSpanMut::span_mut(&mut **it),
1770 Self::TSArrayType(it) => GetSpanMut::span_mut(&mut **it),
1771 Self::TSConditionalType(it) => GetSpanMut::span_mut(&mut **it),
1772 Self::TSConstructorType(it) => GetSpanMut::span_mut(&mut **it),
1773 Self::TSFunctionType(it) => GetSpanMut::span_mut(&mut **it),
1774 Self::TSImportType(it) => GetSpanMut::span_mut(&mut **it),
1775 Self::TSIndexedAccessType(it) => GetSpanMut::span_mut(&mut **it),
1776 Self::TSInferType(it) => GetSpanMut::span_mut(&mut **it),
1777 Self::TSIntersectionType(it) => GetSpanMut::span_mut(&mut **it),
1778 Self::TSLiteralType(it) => GetSpanMut::span_mut(&mut **it),
1779 Self::TSMappedType(it) => GetSpanMut::span_mut(&mut **it),
1780 Self::TSNamedTupleMember(it) => GetSpanMut::span_mut(&mut **it),
1781 Self::TSTemplateLiteralType(it) => GetSpanMut::span_mut(&mut **it),
1782 Self::TSThisType(it) => GetSpanMut::span_mut(&mut **it),
1783 Self::TSTupleType(it) => GetSpanMut::span_mut(&mut **it),
1784 Self::TSTypeLiteral(it) => GetSpanMut::span_mut(&mut **it),
1785 Self::TSTypeOperatorType(it) => GetSpanMut::span_mut(&mut **it),
1786 Self::TSTypePredicate(it) => GetSpanMut::span_mut(&mut **it),
1787 Self::TSTypeQuery(it) => GetSpanMut::span_mut(&mut **it),
1788 Self::TSTypeReference(it) => GetSpanMut::span_mut(&mut **it),
1789 Self::TSUnionType(it) => GetSpanMut::span_mut(&mut **it),
1790 Self::TSParenthesizedType(it) => GetSpanMut::span_mut(&mut **it),
1791 Self::JSDocNullableType(it) => GetSpanMut::span_mut(&mut **it),
1792 Self::JSDocNonNullableType(it) => GetSpanMut::span_mut(&mut **it),
1793 Self::JSDocUnknownType(it) => GetSpanMut::span_mut(&mut **it),
1794 }
1795 }
1796}
1797
1798impl GetSpanMut for TSAnyKeyword {
1799 #[inline]
1800 fn span_mut(&mut self) -> &mut Span {
1801 &mut self.span
1802 }
1803}
1804
1805impl GetSpanMut for TSStringKeyword {
1806 #[inline]
1807 fn span_mut(&mut self) -> &mut Span {
1808 &mut self.span
1809 }
1810}
1811
1812impl GetSpanMut for TSBooleanKeyword {
1813 #[inline]
1814 fn span_mut(&mut self) -> &mut Span {
1815 &mut self.span
1816 }
1817}
1818
1819impl GetSpanMut for TSNumberKeyword {
1820 #[inline]
1821 fn span_mut(&mut self) -> &mut Span {
1822 &mut self.span
1823 }
1824}
1825
1826impl GetSpanMut for TSNeverKeyword {
1827 #[inline]
1828 fn span_mut(&mut self) -> &mut Span {
1829 &mut self.span
1830 }
1831}
1832
1833impl GetSpanMut for TSIntrinsicKeyword {
1834 #[inline]
1835 fn span_mut(&mut self) -> &mut Span {
1836 &mut self.span
1837 }
1838}
1839
1840impl GetSpanMut for TSUnknownKeyword {
1841 #[inline]
1842 fn span_mut(&mut self) -> &mut Span {
1843 &mut self.span
1844 }
1845}
1846
1847impl GetSpanMut for TSNullKeyword {
1848 #[inline]
1849 fn span_mut(&mut self) -> &mut Span {
1850 &mut self.span
1851 }
1852}
1853
1854impl GetSpanMut for TSUndefinedKeyword {
1855 #[inline]
1856 fn span_mut(&mut self) -> &mut Span {
1857 &mut self.span
1858 }
1859}
1860
1861impl GetSpanMut for TSVoidKeyword {
1862 #[inline]
1863 fn span_mut(&mut self) -> &mut Span {
1864 &mut self.span
1865 }
1866}
1867
1868impl GetSpanMut for TSSymbolKeyword {
1869 #[inline]
1870 fn span_mut(&mut self) -> &mut Span {
1871 &mut self.span
1872 }
1873}
1874
1875impl GetSpanMut for TSThisType {
1876 #[inline]
1877 fn span_mut(&mut self) -> &mut Span {
1878 &mut self.span
1879 }
1880}
1881
1882impl GetSpanMut for TSObjectKeyword {
1883 #[inline]
1884 fn span_mut(&mut self) -> &mut Span {
1885 &mut self.span
1886 }
1887}
1888
1889impl GetSpanMut for TSBigIntKeyword {
1890 #[inline]
1891 fn span_mut(&mut self) -> &mut Span {
1892 &mut self.span
1893 }
1894}
1895
1896impl GetSpanMut for TSTypeReference<'_> {
1897 #[inline]
1898 fn span_mut(&mut self) -> &mut Span {
1899 &mut self.span
1900 }
1901}
1902
1903impl GetSpanMut for TSTypeName<'_> {
1904 fn span_mut(&mut self) -> &mut Span {
1905 match self {
1906 Self::IdentifierReference(it) => GetSpanMut::span_mut(&mut **it),
1907 Self::QualifiedName(it) => GetSpanMut::span_mut(&mut **it),
1908 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
1909 }
1910 }
1911}
1912
1913impl GetSpanMut for TSQualifiedName<'_> {
1914 #[inline]
1915 fn span_mut(&mut self) -> &mut Span {
1916 &mut self.span
1917 }
1918}
1919
1920impl GetSpanMut for TSTypeParameterInstantiation<'_> {
1921 #[inline]
1922 fn span_mut(&mut self) -> &mut Span {
1923 &mut self.span
1924 }
1925}
1926
1927impl GetSpanMut for TSTypeParameter<'_> {
1928 #[inline]
1929 fn span_mut(&mut self) -> &mut Span {
1930 &mut self.span
1931 }
1932}
1933
1934impl GetSpanMut for TSTypeParameterDeclaration<'_> {
1935 #[inline]
1936 fn span_mut(&mut self) -> &mut Span {
1937 &mut self.span
1938 }
1939}
1940
1941impl GetSpanMut for TSTypeAliasDeclaration<'_> {
1942 #[inline]
1943 fn span_mut(&mut self) -> &mut Span {
1944 &mut self.span
1945 }
1946}
1947
1948impl GetSpanMut for TSClassImplements<'_> {
1949 #[inline]
1950 fn span_mut(&mut self) -> &mut Span {
1951 &mut self.span
1952 }
1953}
1954
1955impl GetSpanMut for TSInterfaceDeclaration<'_> {
1956 #[inline]
1957 fn span_mut(&mut self) -> &mut Span {
1958 &mut self.span
1959 }
1960}
1961
1962impl GetSpanMut for TSInterfaceBody<'_> {
1963 #[inline]
1964 fn span_mut(&mut self) -> &mut Span {
1965 &mut self.span
1966 }
1967}
1968
1969impl GetSpanMut for TSPropertySignature<'_> {
1970 #[inline]
1971 fn span_mut(&mut self) -> &mut Span {
1972 &mut self.span
1973 }
1974}
1975
1976impl GetSpanMut for TSSignature<'_> {
1977 fn span_mut(&mut self) -> &mut Span {
1978 match self {
1979 Self::TSIndexSignature(it) => GetSpanMut::span_mut(&mut **it),
1980 Self::TSPropertySignature(it) => GetSpanMut::span_mut(&mut **it),
1981 Self::TSCallSignatureDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1982 Self::TSConstructSignatureDeclaration(it) => GetSpanMut::span_mut(&mut **it),
1983 Self::TSMethodSignature(it) => GetSpanMut::span_mut(&mut **it),
1984 }
1985 }
1986}
1987
1988impl GetSpanMut for TSIndexSignature<'_> {
1989 #[inline]
1990 fn span_mut(&mut self) -> &mut Span {
1991 &mut self.span
1992 }
1993}
1994
1995impl GetSpanMut for TSCallSignatureDeclaration<'_> {
1996 #[inline]
1997 fn span_mut(&mut self) -> &mut Span {
1998 &mut self.span
1999 }
2000}
2001
2002impl GetSpanMut for TSMethodSignature<'_> {
2003 #[inline]
2004 fn span_mut(&mut self) -> &mut Span {
2005 &mut self.span
2006 }
2007}
2008
2009impl GetSpanMut for TSConstructSignatureDeclaration<'_> {
2010 #[inline]
2011 fn span_mut(&mut self) -> &mut Span {
2012 &mut self.span
2013 }
2014}
2015
2016impl GetSpanMut for TSIndexSignatureName<'_> {
2017 #[inline]
2018 fn span_mut(&mut self) -> &mut Span {
2019 &mut self.span
2020 }
2021}
2022
2023impl GetSpanMut for TSInterfaceHeritage<'_> {
2024 #[inline]
2025 fn span_mut(&mut self) -> &mut Span {
2026 &mut self.span
2027 }
2028}
2029
2030impl GetSpanMut for TSTypePredicate<'_> {
2031 #[inline]
2032 fn span_mut(&mut self) -> &mut Span {
2033 &mut self.span
2034 }
2035}
2036
2037impl GetSpanMut for TSTypePredicateName<'_> {
2038 fn span_mut(&mut self) -> &mut Span {
2039 match self {
2040 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
2041 Self::This(it) => GetSpanMut::span_mut(&mut **it),
2042 }
2043 }
2044}
2045
2046impl GetSpanMut for TSExternalModuleDeclaration<'_> {
2047 #[inline]
2048 fn span_mut(&mut self) -> &mut Span {
2049 &mut self.span
2050 }
2051}
2052
2053impl GetSpanMut for TSNamespaceDeclaration<'_> {
2054 #[inline]
2055 fn span_mut(&mut self) -> &mut Span {
2056 &mut self.span
2057 }
2058}
2059
2060impl GetSpanMut for TSNamespaceDeclarationBody<'_> {
2061 fn span_mut(&mut self) -> &mut Span {
2062 match self {
2063 Self::TSNamespaceDeclaration(it) => GetSpanMut::span_mut(&mut **it),
2064 Self::TSModuleBlock(it) => GetSpanMut::span_mut(&mut **it),
2065 }
2066 }
2067}
2068
2069impl GetSpanMut for TSGlobalDeclaration<'_> {
2070 #[inline]
2071 fn span_mut(&mut self) -> &mut Span {
2072 &mut self.span
2073 }
2074}
2075
2076impl GetSpanMut for TSModuleBlock<'_> {
2077 #[inline]
2078 fn span_mut(&mut self) -> &mut Span {
2079 &mut self.span
2080 }
2081}
2082
2083impl GetSpanMut for TSTypeLiteral<'_> {
2084 #[inline]
2085 fn span_mut(&mut self) -> &mut Span {
2086 &mut self.span
2087 }
2088}
2089
2090impl GetSpanMut for TSInferType<'_> {
2091 #[inline]
2092 fn span_mut(&mut self) -> &mut Span {
2093 &mut self.span
2094 }
2095}
2096
2097impl GetSpanMut for TSTypeQuery<'_> {
2098 #[inline]
2099 fn span_mut(&mut self) -> &mut Span {
2100 &mut self.span
2101 }
2102}
2103
2104impl GetSpanMut for TSTypeQueryExprName<'_> {
2105 fn span_mut(&mut self) -> &mut Span {
2106 match self {
2107 Self::TSImportType(it) => GetSpanMut::span_mut(&mut **it),
2108 Self::IdentifierReference(it) => GetSpanMut::span_mut(&mut **it),
2109 Self::QualifiedName(it) => GetSpanMut::span_mut(&mut **it),
2110 Self::ThisExpression(it) => GetSpanMut::span_mut(&mut **it),
2111 }
2112 }
2113}
2114
2115impl GetSpanMut for TSImportType<'_> {
2116 #[inline]
2117 fn span_mut(&mut self) -> &mut Span {
2118 &mut self.span
2119 }
2120}
2121
2122impl GetSpanMut for TSImportTypeQualifier<'_> {
2123 fn span_mut(&mut self) -> &mut Span {
2124 match self {
2125 Self::Identifier(it) => GetSpanMut::span_mut(&mut **it),
2126 Self::QualifiedName(it) => GetSpanMut::span_mut(&mut **it),
2127 }
2128 }
2129}
2130
2131impl GetSpanMut for TSImportTypeQualifiedName<'_> {
2132 #[inline]
2133 fn span_mut(&mut self) -> &mut Span {
2134 &mut self.span
2135 }
2136}
2137
2138impl GetSpanMut for TSFunctionType<'_> {
2139 #[inline]
2140 fn span_mut(&mut self) -> &mut Span {
2141 &mut self.span
2142 }
2143}
2144
2145impl GetSpanMut for TSConstructorType<'_> {
2146 #[inline]
2147 fn span_mut(&mut self) -> &mut Span {
2148 &mut self.span
2149 }
2150}
2151
2152impl GetSpanMut for TSMappedType<'_> {
2153 #[inline]
2154 fn span_mut(&mut self) -> &mut Span {
2155 &mut self.span
2156 }
2157}
2158
2159impl GetSpanMut for TSTemplateLiteralType<'_> {
2160 #[inline]
2161 fn span_mut(&mut self) -> &mut Span {
2162 &mut self.span
2163 }
2164}
2165
2166impl GetSpanMut for TSAsExpression<'_> {
2167 #[inline]
2168 fn span_mut(&mut self) -> &mut Span {
2169 &mut self.span
2170 }
2171}
2172
2173impl GetSpanMut for TSSatisfiesExpression<'_> {
2174 #[inline]
2175 fn span_mut(&mut self) -> &mut Span {
2176 &mut self.span
2177 }
2178}
2179
2180impl GetSpanMut for TSTypeAssertion<'_> {
2181 #[inline]
2182 fn span_mut(&mut self) -> &mut Span {
2183 &mut self.span
2184 }
2185}
2186
2187impl GetSpanMut for TSImportEqualsDeclaration<'_> {
2188 #[inline]
2189 fn span_mut(&mut self) -> &mut Span {
2190 &mut self.span
2191 }
2192}
2193
2194impl GetSpanMut for TSModuleReference<'_> {
2195 fn span_mut(&mut self) -> &mut Span {
2196 match self {
2197 Self::ExternalModuleReference(it) => GetSpanMut::span_mut(&mut **it),
2198 Self::IdentifierReference(it) => GetSpanMut::span_mut(&mut **it),
2199 Self::QualifiedName(it) => GetSpanMut::span_mut(&mut **it),
2200 }
2201 }
2202}
2203
2204impl GetSpanMut for TSExternalModuleReference<'_> {
2205 #[inline]
2206 fn span_mut(&mut self) -> &mut Span {
2207 &mut self.span
2208 }
2209}
2210
2211impl GetSpanMut for TSNonNullExpression<'_> {
2212 #[inline]
2213 fn span_mut(&mut self) -> &mut Span {
2214 &mut self.span
2215 }
2216}
2217
2218impl GetSpanMut for Decorator<'_> {
2219 #[inline]
2220 fn span_mut(&mut self) -> &mut Span {
2221 &mut self.span
2222 }
2223}
2224
2225impl GetSpanMut for TSExportAssignment<'_> {
2226 #[inline]
2227 fn span_mut(&mut self) -> &mut Span {
2228 &mut self.span
2229 }
2230}
2231
2232impl GetSpanMut for TSNamespaceExportDeclaration<'_> {
2233 #[inline]
2234 fn span_mut(&mut self) -> &mut Span {
2235 &mut self.span
2236 }
2237}
2238
2239impl GetSpanMut for TSInstantiationExpression<'_> {
2240 #[inline]
2241 fn span_mut(&mut self) -> &mut Span {
2242 &mut self.span
2243 }
2244}
2245
2246impl GetSpanMut for JSDocNullableType<'_> {
2247 #[inline]
2248 fn span_mut(&mut self) -> &mut Span {
2249 &mut self.span
2250 }
2251}
2252
2253impl GetSpanMut for JSDocNonNullableType<'_> {
2254 #[inline]
2255 fn span_mut(&mut self) -> &mut Span {
2256 &mut self.span
2257 }
2258}
2259
2260impl GetSpanMut for JSDocUnknownType {
2261 #[inline]
2262 fn span_mut(&mut self) -> &mut Span {
2263 &mut self.span
2264 }
2265}