hermes-transform 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/detachedNode.js +25 -49
- package/dist/detachedNode.js.flow +3 -3
- package/dist/generated/TransformCloneSignatures.js.flow +1761 -9
- package/dist/generated/TransformReplaceSignatures.js.flow +936 -774
- package/dist/generated/node-types.js +1117 -1132
- package/dist/generated/node-types.js.flow +26 -1
- package/dist/generated/special-case-node-types.js +106 -85
- package/dist/generated/special-case-node-types.js.flow +28 -2
- package/dist/getVisitorKeys.js +4 -6
- package/dist/getVisitorKeys.js.flow +1 -1
- package/dist/index.js +13 -18
- package/dist/index.js.flow +7 -2
- package/dist/transform/Errors.js +8 -116
- package/dist/transform/Errors.js.flow +1 -1
- package/dist/transform/MutationContext.js +54 -67
- package/dist/transform/MutationContext.js.flow +1 -1
- package/dist/transform/TransformContext.js +106 -54
- package/dist/transform/TransformContext.js.flow +255 -121
- package/dist/transform/comments/comments.js +25 -25
- package/dist/transform/comments/comments.js.flow +1 -1
- package/dist/transform/comments/prettier/common/util.js +46 -47
- package/dist/transform/comments/prettier/common/util.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/comments.js +199 -216
- package/dist/transform/comments/prettier/language-js/comments.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/loc.js +10 -9
- package/dist/transform/comments/prettier/language-js/loc.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/printer-estree.js +7 -6
- package/dist/transform/comments/prettier/language-js/printer-estree.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/utils.js +18 -30
- package/dist/transform/comments/prettier/language-js/utils.js.flow +1 -1
- package/dist/transform/comments/prettier/main/comments.js +225 -298
- package/dist/transform/comments/prettier/main/comments.js.flow +1 -1
- package/dist/transform/comments/prettier/utils/get-last.js +2 -4
- package/dist/transform/comments/prettier/utils/get-last.js.flow +1 -1
- package/dist/transform/getTransformedAST.js +85 -101
- package/dist/transform/getTransformedAST.js.flow +7 -2
- package/dist/transform/mutations/AddLeadingComments.js +15 -22
- package/dist/transform/mutations/AddLeadingComments.js.flow +1 -1
- package/dist/transform/mutations/AddTrailingComments.js +15 -22
- package/dist/transform/mutations/AddTrailingComments.js.flow +1 -1
- package/dist/transform/mutations/CloneCommentsTo.js +16 -23
- package/dist/transform/mutations/CloneCommentsTo.js.flow +1 -1
- package/dist/transform/mutations/InsertStatement.js +27 -30
- package/dist/transform/mutations/InsertStatement.js.flow +1 -1
- package/dist/transform/mutations/RemoveComment.js +25 -43
- package/dist/transform/mutations/RemoveComment.js.flow +1 -1
- package/dist/transform/mutations/RemoveNode.js +185 -0
- package/dist/transform/mutations/RemoveNode.js.flow +279 -0
- package/dist/transform/mutations/RemoveStatement.js +7 -9
- package/dist/transform/mutations/RemoveStatement.js.flow +1 -1
- package/dist/transform/mutations/ReplaceNode.js +36 -44
- package/dist/transform/mutations/ReplaceNode.js.flow +1 -1
- package/dist/transform/mutations/ReplaceStatementWithMany.js +11 -13
- package/dist/transform/mutations/ReplaceStatementWithMany.js.flow +1 -1
- package/dist/transform/mutations/utils/arrayUtils.js +2 -14
- package/dist/transform/mutations/utils/arrayUtils.js.flow +1 -1
- package/dist/transform/mutations/utils/getStatementParent.js +23 -28
- package/dist/transform/mutations/utils/getStatementParent.js.flow +2 -2
- package/dist/transform/mutations/utils/isValidModuleDeclarationParent.js +7 -24
- package/dist/transform/mutations/utils/isValidModuleDeclarationParent.js.flow +1 -1
- package/dist/transform/transform.js +20 -24
- package/dist/transform/transform.js.flow +12 -8
- package/dist/traverse/NodeEventGenerator.js +91 -165
- package/dist/traverse/NodeEventGenerator.js.flow +1 -1
- package/dist/traverse/SafeEmitter.js +20 -38
- package/dist/traverse/SafeEmitter.js.flow +1 -1
- package/dist/traverse/SimpleTraverser.js +67 -98
- package/dist/traverse/SimpleTraverser.js.flow +4 -1
- package/dist/traverse/esquery.js +6 -6
- package/dist/traverse/esquery.js.flow +1 -1
- package/dist/traverse/traverse.js +39 -51
- package/dist/traverse/traverse.js.flow +1 -1
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -8,10 +8,13 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
// lint directives to let us do some basic validation of generated files
|
|
12
|
+
/* eslint no-undef: 'error', no-unused-vars: ['error', {vars: "local"}], no-redeclare: 'error' */
|
|
13
|
+
/* global $NonMaybeType, $Partial, $ReadOnly, $ReadOnlyArray */
|
|
14
|
+
|
|
11
15
|
'use strict';
|
|
12
16
|
|
|
13
17
|
import type {
|
|
14
|
-
ESNode,
|
|
15
18
|
AnyTypeAnnotation,
|
|
16
19
|
ArrayExpression,
|
|
17
20
|
ArrayPattern,
|
|
@@ -20,6 +23,7 @@ import type {
|
|
|
20
23
|
AssignmentExpression,
|
|
21
24
|
AssignmentPattern,
|
|
22
25
|
AwaitExpression,
|
|
26
|
+
BigIntLiteralTypeAnnotation,
|
|
23
27
|
BinaryExpression,
|
|
24
28
|
BlockStatement,
|
|
25
29
|
BooleanLiteralTypeAnnotation,
|
|
@@ -169,775 +173,933 @@ import type {
|
|
|
169
173
|
} from 'hermes-estree';
|
|
170
174
|
import type {DetachedNode} from '../detachedNode';
|
|
171
175
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
176
|
+
type AnyTypeAnnotationReplaceSignature = (
|
|
177
|
+
target: AnyTypeAnnotation,
|
|
178
|
+
nodeToReplaceWith: DetachedNode<AnyTypeAnnotation>,
|
|
179
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
180
|
+
) => void;
|
|
181
|
+
type ArrayExpressionReplaceSignature = (
|
|
182
|
+
target: ArrayExpression,
|
|
183
|
+
nodeToReplaceWith: DetachedNode<ArrayExpression>,
|
|
184
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
185
|
+
) => void;
|
|
186
|
+
type ArrayPatternReplaceSignature = (
|
|
187
|
+
target: ArrayPattern,
|
|
188
|
+
nodeToReplaceWith: DetachedNode<ArrayPattern>,
|
|
189
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
190
|
+
) => void;
|
|
191
|
+
type ArrayTypeAnnotationReplaceSignature = (
|
|
192
|
+
target: ArrayTypeAnnotation,
|
|
193
|
+
nodeToReplaceWith: DetachedNode<ArrayTypeAnnotation>,
|
|
194
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
195
|
+
) => void;
|
|
196
|
+
type ArrowFunctionExpressionReplaceSignature = (
|
|
197
|
+
target: ArrowFunctionExpression,
|
|
198
|
+
nodeToReplaceWith: DetachedNode<ArrowFunctionExpression>,
|
|
199
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
200
|
+
) => void;
|
|
201
|
+
type AssignmentExpressionReplaceSignature = (
|
|
202
|
+
target: AssignmentExpression,
|
|
203
|
+
nodeToReplaceWith: DetachedNode<AssignmentExpression>,
|
|
204
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
205
|
+
) => void;
|
|
206
|
+
type AssignmentPatternReplaceSignature = (
|
|
207
|
+
target: AssignmentPattern,
|
|
208
|
+
nodeToReplaceWith: DetachedNode<AssignmentPattern>,
|
|
209
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
210
|
+
) => void;
|
|
211
|
+
type AwaitExpressionReplaceSignature = (
|
|
212
|
+
target: AwaitExpression,
|
|
213
|
+
nodeToReplaceWith: DetachedNode<AwaitExpression>,
|
|
214
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
215
|
+
) => void;
|
|
216
|
+
type BigIntLiteralTypeAnnotationReplaceSignature = (
|
|
217
|
+
target: BigIntLiteralTypeAnnotation,
|
|
218
|
+
nodeToReplaceWith: DetachedNode<BigIntLiteralTypeAnnotation>,
|
|
219
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
220
|
+
) => void;
|
|
221
|
+
type BinaryExpressionReplaceSignature = (
|
|
222
|
+
target: BinaryExpression,
|
|
223
|
+
nodeToReplaceWith: DetachedNode<BinaryExpression>,
|
|
224
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
225
|
+
) => void;
|
|
226
|
+
type BlockStatementReplaceSignature = (
|
|
227
|
+
target: BlockStatement,
|
|
228
|
+
nodeToReplaceWith: DetachedNode<BlockStatement>,
|
|
229
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
230
|
+
) => void;
|
|
231
|
+
type BooleanLiteralTypeAnnotationReplaceSignature = (
|
|
232
|
+
target: BooleanLiteralTypeAnnotation,
|
|
233
|
+
nodeToReplaceWith: DetachedNode<BooleanLiteralTypeAnnotation>,
|
|
234
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
235
|
+
) => void;
|
|
236
|
+
type BooleanTypeAnnotationReplaceSignature = (
|
|
237
|
+
target: BooleanTypeAnnotation,
|
|
238
|
+
nodeToReplaceWith: DetachedNode<BooleanTypeAnnotation>,
|
|
239
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
240
|
+
) => void;
|
|
241
|
+
type BreakStatementReplaceSignature = (
|
|
242
|
+
target: BreakStatement,
|
|
243
|
+
nodeToReplaceWith: DetachedNode<BreakStatement>,
|
|
244
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
245
|
+
) => void;
|
|
246
|
+
type CallExpressionReplaceSignature = (
|
|
247
|
+
target: CallExpression,
|
|
248
|
+
nodeToReplaceWith: DetachedNode<CallExpression>,
|
|
249
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
250
|
+
) => void;
|
|
251
|
+
type CatchClauseReplaceSignature = (
|
|
252
|
+
target: CatchClause,
|
|
253
|
+
nodeToReplaceWith: DetachedNode<CatchClause>,
|
|
254
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
255
|
+
) => void;
|
|
256
|
+
type ClassBodyReplaceSignature = (
|
|
257
|
+
target: ClassBody,
|
|
258
|
+
nodeToReplaceWith: DetachedNode<ClassBody>,
|
|
259
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
260
|
+
) => void;
|
|
261
|
+
type ClassDeclarationReplaceSignature = (
|
|
262
|
+
target: ClassDeclaration,
|
|
263
|
+
nodeToReplaceWith: DetachedNode<ClassDeclaration>,
|
|
264
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
265
|
+
) => void;
|
|
266
|
+
type ClassExpressionReplaceSignature = (
|
|
267
|
+
target: ClassExpression,
|
|
268
|
+
nodeToReplaceWith: DetachedNode<ClassExpression>,
|
|
269
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
270
|
+
) => void;
|
|
271
|
+
type ClassImplementsReplaceSignature = (
|
|
272
|
+
target: ClassImplements,
|
|
273
|
+
nodeToReplaceWith: DetachedNode<ClassImplements>,
|
|
274
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
275
|
+
) => void;
|
|
276
|
+
type ClassPrivatePropertyReplaceSignature = (
|
|
277
|
+
target: ClassPrivateProperty,
|
|
278
|
+
nodeToReplaceWith: DetachedNode<ClassPrivateProperty>,
|
|
279
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
280
|
+
) => void;
|
|
281
|
+
type ClassPropertyReplaceSignature = (
|
|
282
|
+
target: ClassProperty,
|
|
283
|
+
nodeToReplaceWith: DetachedNode<ClassProperty>,
|
|
284
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
285
|
+
) => void;
|
|
286
|
+
type ConditionalExpressionReplaceSignature = (
|
|
287
|
+
target: ConditionalExpression,
|
|
288
|
+
nodeToReplaceWith: DetachedNode<ConditionalExpression>,
|
|
289
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
290
|
+
) => void;
|
|
291
|
+
type ContinueStatementReplaceSignature = (
|
|
292
|
+
target: ContinueStatement,
|
|
293
|
+
nodeToReplaceWith: DetachedNode<ContinueStatement>,
|
|
294
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
295
|
+
) => void;
|
|
296
|
+
type DebuggerStatementReplaceSignature = (
|
|
297
|
+
target: DebuggerStatement,
|
|
298
|
+
nodeToReplaceWith: DetachedNode<DebuggerStatement>,
|
|
299
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
300
|
+
) => void;
|
|
301
|
+
type DeclareClassReplaceSignature = (
|
|
302
|
+
target: DeclareClass,
|
|
303
|
+
nodeToReplaceWith: DetachedNode<DeclareClass>,
|
|
304
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
305
|
+
) => void;
|
|
306
|
+
type DeclaredPredicateReplaceSignature = (
|
|
307
|
+
target: DeclaredPredicate,
|
|
308
|
+
nodeToReplaceWith: DetachedNode<DeclaredPredicate>,
|
|
309
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
310
|
+
) => void;
|
|
311
|
+
type DeclareExportAllDeclarationReplaceSignature = (
|
|
312
|
+
target: DeclareExportAllDeclaration,
|
|
313
|
+
nodeToReplaceWith: DetachedNode<DeclareExportAllDeclaration>,
|
|
314
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
315
|
+
) => void;
|
|
316
|
+
type DeclareExportDeclarationReplaceSignature = (
|
|
317
|
+
target: DeclareExportDeclaration,
|
|
318
|
+
nodeToReplaceWith: DetachedNode<DeclareExportDeclaration>,
|
|
319
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
320
|
+
) => void;
|
|
321
|
+
type DeclareFunctionReplaceSignature = (
|
|
322
|
+
target: DeclareFunction,
|
|
323
|
+
nodeToReplaceWith: DetachedNode<DeclareFunction>,
|
|
324
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
325
|
+
) => void;
|
|
326
|
+
type DeclareInterfaceReplaceSignature = (
|
|
327
|
+
target: DeclareInterface,
|
|
328
|
+
nodeToReplaceWith: DetachedNode<DeclareInterface>,
|
|
329
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
330
|
+
) => void;
|
|
331
|
+
type DeclareModuleReplaceSignature = (
|
|
332
|
+
target: DeclareModule,
|
|
333
|
+
nodeToReplaceWith: DetachedNode<DeclareModule>,
|
|
334
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
335
|
+
) => void;
|
|
336
|
+
type DeclareModuleExportsReplaceSignature = (
|
|
337
|
+
target: DeclareModuleExports,
|
|
338
|
+
nodeToReplaceWith: DetachedNode<DeclareModuleExports>,
|
|
339
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
340
|
+
) => void;
|
|
341
|
+
type DeclareOpaqueTypeReplaceSignature = (
|
|
342
|
+
target: DeclareOpaqueType,
|
|
343
|
+
nodeToReplaceWith: DetachedNode<DeclareOpaqueType>,
|
|
344
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
345
|
+
) => void;
|
|
346
|
+
type DeclareTypeAliasReplaceSignature = (
|
|
347
|
+
target: DeclareTypeAlias,
|
|
348
|
+
nodeToReplaceWith: DetachedNode<DeclareTypeAlias>,
|
|
349
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
350
|
+
) => void;
|
|
351
|
+
type DeclareVariableReplaceSignature = (
|
|
352
|
+
target: DeclareVariable,
|
|
353
|
+
nodeToReplaceWith: DetachedNode<DeclareVariable>,
|
|
354
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
355
|
+
) => void;
|
|
356
|
+
type DoWhileStatementReplaceSignature = (
|
|
357
|
+
target: DoWhileStatement,
|
|
358
|
+
nodeToReplaceWith: DetachedNode<DoWhileStatement>,
|
|
359
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
360
|
+
) => void;
|
|
361
|
+
type EmptyStatementReplaceSignature = (
|
|
362
|
+
target: EmptyStatement,
|
|
363
|
+
nodeToReplaceWith: DetachedNode<EmptyStatement>,
|
|
364
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
365
|
+
) => void;
|
|
366
|
+
type EmptyTypeAnnotationReplaceSignature = (
|
|
367
|
+
target: EmptyTypeAnnotation,
|
|
368
|
+
nodeToReplaceWith: DetachedNode<EmptyTypeAnnotation>,
|
|
369
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
370
|
+
) => void;
|
|
371
|
+
type EnumBooleanBodyReplaceSignature = (
|
|
372
|
+
target: EnumBooleanBody,
|
|
373
|
+
nodeToReplaceWith: DetachedNode<EnumBooleanBody>,
|
|
374
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
375
|
+
) => void;
|
|
376
|
+
type EnumBooleanMemberReplaceSignature = (
|
|
377
|
+
target: EnumBooleanMember,
|
|
378
|
+
nodeToReplaceWith: DetachedNode<EnumBooleanMember>,
|
|
379
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
380
|
+
) => void;
|
|
381
|
+
type EnumDeclarationReplaceSignature = (
|
|
382
|
+
target: EnumDeclaration,
|
|
383
|
+
nodeToReplaceWith: DetachedNode<EnumDeclaration>,
|
|
384
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
385
|
+
) => void;
|
|
386
|
+
type EnumDefaultedMemberReplaceSignature = (
|
|
387
|
+
target: EnumDefaultedMember,
|
|
388
|
+
nodeToReplaceWith: DetachedNode<EnumDefaultedMember>,
|
|
389
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
390
|
+
) => void;
|
|
391
|
+
type EnumNumberBodyReplaceSignature = (
|
|
392
|
+
target: EnumNumberBody,
|
|
393
|
+
nodeToReplaceWith: DetachedNode<EnumNumberBody>,
|
|
394
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
395
|
+
) => void;
|
|
396
|
+
type EnumNumberMemberReplaceSignature = (
|
|
397
|
+
target: EnumNumberMember,
|
|
398
|
+
nodeToReplaceWith: DetachedNode<EnumNumberMember>,
|
|
399
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
400
|
+
) => void;
|
|
401
|
+
type EnumStringBodyReplaceSignature = (
|
|
402
|
+
target: EnumStringBody,
|
|
403
|
+
nodeToReplaceWith: DetachedNode<EnumStringBody>,
|
|
404
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
405
|
+
) => void;
|
|
406
|
+
type EnumStringMemberReplaceSignature = (
|
|
407
|
+
target: EnumStringMember,
|
|
408
|
+
nodeToReplaceWith: DetachedNode<EnumStringMember>,
|
|
409
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
410
|
+
) => void;
|
|
411
|
+
type EnumSymbolBodyReplaceSignature = (
|
|
412
|
+
target: EnumSymbolBody,
|
|
413
|
+
nodeToReplaceWith: DetachedNode<EnumSymbolBody>,
|
|
414
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
415
|
+
) => void;
|
|
416
|
+
type ExistsTypeAnnotationReplaceSignature = (
|
|
417
|
+
target: ExistsTypeAnnotation,
|
|
418
|
+
nodeToReplaceWith: DetachedNode<ExistsTypeAnnotation>,
|
|
419
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
420
|
+
) => void;
|
|
421
|
+
type ExportAllDeclarationReplaceSignature = (
|
|
422
|
+
target: ExportAllDeclaration,
|
|
423
|
+
nodeToReplaceWith: DetachedNode<ExportAllDeclaration>,
|
|
424
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
425
|
+
) => void;
|
|
426
|
+
type ExportDefaultDeclarationReplaceSignature = (
|
|
427
|
+
target: ExportDefaultDeclaration,
|
|
428
|
+
nodeToReplaceWith: DetachedNode<ExportDefaultDeclaration>,
|
|
429
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
430
|
+
) => void;
|
|
431
|
+
type ExportNamedDeclarationReplaceSignature = (
|
|
432
|
+
target: ExportNamedDeclaration,
|
|
433
|
+
nodeToReplaceWith: DetachedNode<ExportNamedDeclaration>,
|
|
434
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
435
|
+
) => void;
|
|
436
|
+
type ExportNamespaceSpecifierReplaceSignature = (
|
|
437
|
+
target: ExportNamespaceSpecifier,
|
|
438
|
+
nodeToReplaceWith: DetachedNode<ExportNamespaceSpecifier>,
|
|
439
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
440
|
+
) => void;
|
|
441
|
+
type ExportSpecifierReplaceSignature = (
|
|
442
|
+
target: ExportSpecifier,
|
|
443
|
+
nodeToReplaceWith: DetachedNode<ExportSpecifier>,
|
|
444
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
445
|
+
) => void;
|
|
446
|
+
type ExpressionStatementReplaceSignature = (
|
|
447
|
+
target: ExpressionStatement,
|
|
448
|
+
nodeToReplaceWith: DetachedNode<ExpressionStatement>,
|
|
449
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
450
|
+
) => void;
|
|
451
|
+
type ForInStatementReplaceSignature = (
|
|
452
|
+
target: ForInStatement,
|
|
453
|
+
nodeToReplaceWith: DetachedNode<ForInStatement>,
|
|
454
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
455
|
+
) => void;
|
|
456
|
+
type ForOfStatementReplaceSignature = (
|
|
457
|
+
target: ForOfStatement,
|
|
458
|
+
nodeToReplaceWith: DetachedNode<ForOfStatement>,
|
|
459
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
460
|
+
) => void;
|
|
461
|
+
type ForStatementReplaceSignature = (
|
|
462
|
+
target: ForStatement,
|
|
463
|
+
nodeToReplaceWith: DetachedNode<ForStatement>,
|
|
464
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
465
|
+
) => void;
|
|
466
|
+
type FunctionDeclarationReplaceSignature = (
|
|
467
|
+
target: FunctionDeclaration,
|
|
468
|
+
nodeToReplaceWith: DetachedNode<FunctionDeclaration>,
|
|
469
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
470
|
+
) => void;
|
|
471
|
+
type FunctionExpressionReplaceSignature = (
|
|
472
|
+
target: FunctionExpression,
|
|
473
|
+
nodeToReplaceWith: DetachedNode<FunctionExpression>,
|
|
474
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
475
|
+
) => void;
|
|
476
|
+
type FunctionTypeAnnotationReplaceSignature = (
|
|
477
|
+
target: FunctionTypeAnnotation,
|
|
478
|
+
nodeToReplaceWith: DetachedNode<FunctionTypeAnnotation>,
|
|
479
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
480
|
+
) => void;
|
|
481
|
+
type FunctionTypeParamReplaceSignature = (
|
|
482
|
+
target: FunctionTypeParam,
|
|
483
|
+
nodeToReplaceWith: DetachedNode<FunctionTypeParam>,
|
|
484
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
485
|
+
) => void;
|
|
486
|
+
type GenericTypeAnnotationReplaceSignature = (
|
|
487
|
+
target: GenericTypeAnnotation,
|
|
488
|
+
nodeToReplaceWith: DetachedNode<GenericTypeAnnotation>,
|
|
489
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
490
|
+
) => void;
|
|
491
|
+
type IdentifierReplaceSignature = (
|
|
492
|
+
target: Identifier,
|
|
493
|
+
nodeToReplaceWith: DetachedNode<Identifier>,
|
|
494
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
495
|
+
) => void;
|
|
496
|
+
type IfStatementReplaceSignature = (
|
|
497
|
+
target: IfStatement,
|
|
498
|
+
nodeToReplaceWith: DetachedNode<IfStatement>,
|
|
499
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
500
|
+
) => void;
|
|
501
|
+
type ImportAttributeReplaceSignature = (
|
|
502
|
+
target: ImportAttribute,
|
|
503
|
+
nodeToReplaceWith: DetachedNode<ImportAttribute>,
|
|
504
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
505
|
+
) => void;
|
|
506
|
+
type ImportDeclarationReplaceSignature = (
|
|
507
|
+
target: ImportDeclaration,
|
|
508
|
+
nodeToReplaceWith: DetachedNode<ImportDeclaration>,
|
|
509
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
510
|
+
) => void;
|
|
511
|
+
type ImportDefaultSpecifierReplaceSignature = (
|
|
512
|
+
target: ImportDefaultSpecifier,
|
|
513
|
+
nodeToReplaceWith: DetachedNode<ImportDefaultSpecifier>,
|
|
514
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
515
|
+
) => void;
|
|
516
|
+
type ImportExpressionReplaceSignature = (
|
|
517
|
+
target: ImportExpression,
|
|
518
|
+
nodeToReplaceWith: DetachedNode<ImportExpression>,
|
|
519
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
520
|
+
) => void;
|
|
521
|
+
type ImportNamespaceSpecifierReplaceSignature = (
|
|
522
|
+
target: ImportNamespaceSpecifier,
|
|
523
|
+
nodeToReplaceWith: DetachedNode<ImportNamespaceSpecifier>,
|
|
524
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
525
|
+
) => void;
|
|
526
|
+
type ImportSpecifierReplaceSignature = (
|
|
527
|
+
target: ImportSpecifier,
|
|
528
|
+
nodeToReplaceWith: DetachedNode<ImportSpecifier>,
|
|
529
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
530
|
+
) => void;
|
|
531
|
+
type IndexedAccessTypeReplaceSignature = (
|
|
532
|
+
target: IndexedAccessType,
|
|
533
|
+
nodeToReplaceWith: DetachedNode<IndexedAccessType>,
|
|
534
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
535
|
+
) => void;
|
|
536
|
+
type InferredPredicateReplaceSignature = (
|
|
537
|
+
target: InferredPredicate,
|
|
538
|
+
nodeToReplaceWith: DetachedNode<InferredPredicate>,
|
|
539
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
540
|
+
) => void;
|
|
541
|
+
type InterfaceDeclarationReplaceSignature = (
|
|
542
|
+
target: InterfaceDeclaration,
|
|
543
|
+
nodeToReplaceWith: DetachedNode<InterfaceDeclaration>,
|
|
544
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
545
|
+
) => void;
|
|
546
|
+
type InterfaceExtendsReplaceSignature = (
|
|
547
|
+
target: InterfaceExtends,
|
|
548
|
+
nodeToReplaceWith: DetachedNode<InterfaceExtends>,
|
|
549
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
550
|
+
) => void;
|
|
551
|
+
type InterfaceTypeAnnotationReplaceSignature = (
|
|
552
|
+
target: InterfaceTypeAnnotation,
|
|
553
|
+
nodeToReplaceWith: DetachedNode<InterfaceTypeAnnotation>,
|
|
554
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
555
|
+
) => void;
|
|
556
|
+
type IntersectionTypeAnnotationReplaceSignature = (
|
|
557
|
+
target: IntersectionTypeAnnotation,
|
|
558
|
+
nodeToReplaceWith: DetachedNode<IntersectionTypeAnnotation>,
|
|
559
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
560
|
+
) => void;
|
|
561
|
+
type JSXAttributeReplaceSignature = (
|
|
562
|
+
target: JSXAttribute,
|
|
563
|
+
nodeToReplaceWith: DetachedNode<JSXAttribute>,
|
|
564
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
565
|
+
) => void;
|
|
566
|
+
type JSXClosingElementReplaceSignature = (
|
|
567
|
+
target: JSXClosingElement,
|
|
568
|
+
nodeToReplaceWith: DetachedNode<JSXClosingElement>,
|
|
569
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
570
|
+
) => void;
|
|
571
|
+
type JSXClosingFragmentReplaceSignature = (
|
|
572
|
+
target: JSXClosingFragment,
|
|
573
|
+
nodeToReplaceWith: DetachedNode<JSXClosingFragment>,
|
|
574
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
575
|
+
) => void;
|
|
576
|
+
type JSXElementReplaceSignature = (
|
|
577
|
+
target: JSXElement,
|
|
578
|
+
nodeToReplaceWith: DetachedNode<JSXElement>,
|
|
579
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
580
|
+
) => void;
|
|
581
|
+
type JSXEmptyExpressionReplaceSignature = (
|
|
582
|
+
target: JSXEmptyExpression,
|
|
583
|
+
nodeToReplaceWith: DetachedNode<JSXEmptyExpression>,
|
|
584
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
585
|
+
) => void;
|
|
586
|
+
type JSXExpressionContainerReplaceSignature = (
|
|
587
|
+
target: JSXExpressionContainer,
|
|
588
|
+
nodeToReplaceWith: DetachedNode<JSXExpressionContainer>,
|
|
589
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
590
|
+
) => void;
|
|
591
|
+
type JSXFragmentReplaceSignature = (
|
|
592
|
+
target: JSXFragment,
|
|
593
|
+
nodeToReplaceWith: DetachedNode<JSXFragment>,
|
|
594
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
595
|
+
) => void;
|
|
596
|
+
type JSXIdentifierReplaceSignature = (
|
|
597
|
+
target: JSXIdentifier,
|
|
598
|
+
nodeToReplaceWith: DetachedNode<JSXIdentifier>,
|
|
599
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
600
|
+
) => void;
|
|
601
|
+
type JSXMemberExpressionReplaceSignature = (
|
|
602
|
+
target: JSXMemberExpression,
|
|
603
|
+
nodeToReplaceWith: DetachedNode<JSXMemberExpression>,
|
|
604
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
605
|
+
) => void;
|
|
606
|
+
type JSXNamespacedNameReplaceSignature = (
|
|
607
|
+
target: JSXNamespacedName,
|
|
608
|
+
nodeToReplaceWith: DetachedNode<JSXNamespacedName>,
|
|
609
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
610
|
+
) => void;
|
|
611
|
+
type JSXOpeningElementReplaceSignature = (
|
|
612
|
+
target: JSXOpeningElement,
|
|
613
|
+
nodeToReplaceWith: DetachedNode<JSXOpeningElement>,
|
|
614
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
615
|
+
) => void;
|
|
616
|
+
type JSXOpeningFragmentReplaceSignature = (
|
|
617
|
+
target: JSXOpeningFragment,
|
|
618
|
+
nodeToReplaceWith: DetachedNode<JSXOpeningFragment>,
|
|
619
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
620
|
+
) => void;
|
|
621
|
+
type JSXSpreadAttributeReplaceSignature = (
|
|
622
|
+
target: JSXSpreadAttribute,
|
|
623
|
+
nodeToReplaceWith: DetachedNode<JSXSpreadAttribute>,
|
|
624
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
625
|
+
) => void;
|
|
626
|
+
type JSXSpreadChildReplaceSignature = (
|
|
627
|
+
target: JSXSpreadChild,
|
|
628
|
+
nodeToReplaceWith: DetachedNode<JSXSpreadChild>,
|
|
629
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
630
|
+
) => void;
|
|
631
|
+
type JSXTextReplaceSignature = (
|
|
632
|
+
target: JSXText,
|
|
633
|
+
nodeToReplaceWith: DetachedNode<JSXText>,
|
|
634
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
635
|
+
) => void;
|
|
636
|
+
type LabeledStatementReplaceSignature = (
|
|
637
|
+
target: LabeledStatement,
|
|
638
|
+
nodeToReplaceWith: DetachedNode<LabeledStatement>,
|
|
639
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
640
|
+
) => void;
|
|
641
|
+
type LogicalExpressionReplaceSignature = (
|
|
642
|
+
target: LogicalExpression,
|
|
643
|
+
nodeToReplaceWith: DetachedNode<LogicalExpression>,
|
|
644
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
645
|
+
) => void;
|
|
646
|
+
type MemberExpressionReplaceSignature = (
|
|
647
|
+
target: MemberExpression,
|
|
648
|
+
nodeToReplaceWith: DetachedNode<MemberExpression>,
|
|
649
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
650
|
+
) => void;
|
|
651
|
+
type MetaPropertyReplaceSignature = (
|
|
652
|
+
target: MetaProperty,
|
|
653
|
+
nodeToReplaceWith: DetachedNode<MetaProperty>,
|
|
654
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
655
|
+
) => void;
|
|
656
|
+
type MethodDefinitionReplaceSignature = (
|
|
657
|
+
target: MethodDefinition,
|
|
658
|
+
nodeToReplaceWith: DetachedNode<MethodDefinition>,
|
|
659
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
660
|
+
) => void;
|
|
661
|
+
type MixedTypeAnnotationReplaceSignature = (
|
|
662
|
+
target: MixedTypeAnnotation,
|
|
663
|
+
nodeToReplaceWith: DetachedNode<MixedTypeAnnotation>,
|
|
664
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
665
|
+
) => void;
|
|
666
|
+
type NewExpressionReplaceSignature = (
|
|
667
|
+
target: NewExpression,
|
|
668
|
+
nodeToReplaceWith: DetachedNode<NewExpression>,
|
|
669
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
670
|
+
) => void;
|
|
671
|
+
type NullableTypeAnnotationReplaceSignature = (
|
|
672
|
+
target: NullableTypeAnnotation,
|
|
673
|
+
nodeToReplaceWith: DetachedNode<NullableTypeAnnotation>,
|
|
674
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
675
|
+
) => void;
|
|
676
|
+
type NullLiteralTypeAnnotationReplaceSignature = (
|
|
677
|
+
target: NullLiteralTypeAnnotation,
|
|
678
|
+
nodeToReplaceWith: DetachedNode<NullLiteralTypeAnnotation>,
|
|
679
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
680
|
+
) => void;
|
|
681
|
+
type NumberLiteralTypeAnnotationReplaceSignature = (
|
|
682
|
+
target: NumberLiteralTypeAnnotation,
|
|
683
|
+
nodeToReplaceWith: DetachedNode<NumberLiteralTypeAnnotation>,
|
|
684
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
685
|
+
) => void;
|
|
686
|
+
type NumberTypeAnnotationReplaceSignature = (
|
|
687
|
+
target: NumberTypeAnnotation,
|
|
688
|
+
nodeToReplaceWith: DetachedNode<NumberTypeAnnotation>,
|
|
689
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
690
|
+
) => void;
|
|
691
|
+
type ObjectExpressionReplaceSignature = (
|
|
692
|
+
target: ObjectExpression,
|
|
693
|
+
nodeToReplaceWith: DetachedNode<ObjectExpression>,
|
|
694
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
695
|
+
) => void;
|
|
696
|
+
type ObjectPatternReplaceSignature = (
|
|
697
|
+
target: ObjectPattern,
|
|
698
|
+
nodeToReplaceWith: DetachedNode<ObjectPattern>,
|
|
699
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
700
|
+
) => void;
|
|
701
|
+
type ObjectTypeAnnotationReplaceSignature = (
|
|
702
|
+
target: ObjectTypeAnnotation,
|
|
703
|
+
nodeToReplaceWith: DetachedNode<ObjectTypeAnnotation>,
|
|
704
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
705
|
+
) => void;
|
|
706
|
+
type ObjectTypeCallPropertyReplaceSignature = (
|
|
707
|
+
target: ObjectTypeCallProperty,
|
|
708
|
+
nodeToReplaceWith: DetachedNode<ObjectTypeCallProperty>,
|
|
709
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
710
|
+
) => void;
|
|
711
|
+
type ObjectTypeIndexerReplaceSignature = (
|
|
712
|
+
target: ObjectTypeIndexer,
|
|
713
|
+
nodeToReplaceWith: DetachedNode<ObjectTypeIndexer>,
|
|
714
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
715
|
+
) => void;
|
|
716
|
+
type ObjectTypeInternalSlotReplaceSignature = (
|
|
717
|
+
target: ObjectTypeInternalSlot,
|
|
718
|
+
nodeToReplaceWith: DetachedNode<ObjectTypeInternalSlot>,
|
|
719
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
720
|
+
) => void;
|
|
721
|
+
type ObjectTypePropertyReplaceSignature = (
|
|
722
|
+
target: ObjectTypeProperty,
|
|
723
|
+
nodeToReplaceWith: DetachedNode<ObjectTypeProperty>,
|
|
724
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
725
|
+
) => void;
|
|
726
|
+
type ObjectTypeSpreadPropertyReplaceSignature = (
|
|
727
|
+
target: ObjectTypeSpreadProperty,
|
|
728
|
+
nodeToReplaceWith: DetachedNode<ObjectTypeSpreadProperty>,
|
|
729
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
730
|
+
) => void;
|
|
731
|
+
type OpaqueTypeReplaceSignature = (
|
|
732
|
+
target: OpaqueType,
|
|
733
|
+
nodeToReplaceWith: DetachedNode<OpaqueType>,
|
|
734
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
735
|
+
) => void;
|
|
736
|
+
type OptionalCallExpressionReplaceSignature = (
|
|
737
|
+
target: OptionalCallExpression,
|
|
738
|
+
nodeToReplaceWith: DetachedNode<OptionalCallExpression>,
|
|
739
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
740
|
+
) => void;
|
|
741
|
+
type OptionalIndexedAccessTypeReplaceSignature = (
|
|
742
|
+
target: OptionalIndexedAccessType,
|
|
743
|
+
nodeToReplaceWith: DetachedNode<OptionalIndexedAccessType>,
|
|
744
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
745
|
+
) => void;
|
|
746
|
+
type OptionalMemberExpressionReplaceSignature = (
|
|
747
|
+
target: OptionalMemberExpression,
|
|
748
|
+
nodeToReplaceWith: DetachedNode<OptionalMemberExpression>,
|
|
749
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
750
|
+
) => void;
|
|
751
|
+
type PrivateNameReplaceSignature = (
|
|
752
|
+
target: PrivateName,
|
|
753
|
+
nodeToReplaceWith: DetachedNode<PrivateName>,
|
|
754
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
755
|
+
) => void;
|
|
756
|
+
type ProgramReplaceSignature = (
|
|
757
|
+
target: Program,
|
|
758
|
+
nodeToReplaceWith: DetachedNode<Program>,
|
|
759
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
760
|
+
) => void;
|
|
761
|
+
type PropertyReplaceSignature = (
|
|
762
|
+
target: Property,
|
|
763
|
+
nodeToReplaceWith: DetachedNode<Property>,
|
|
764
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
765
|
+
) => void;
|
|
766
|
+
type QualifiedTypeIdentifierReplaceSignature = (
|
|
767
|
+
target: QualifiedTypeIdentifier,
|
|
768
|
+
nodeToReplaceWith: DetachedNode<QualifiedTypeIdentifier>,
|
|
769
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
770
|
+
) => void;
|
|
771
|
+
type RestElementReplaceSignature = (
|
|
772
|
+
target: RestElement,
|
|
773
|
+
nodeToReplaceWith: DetachedNode<RestElement>,
|
|
774
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
775
|
+
) => void;
|
|
776
|
+
type ReturnStatementReplaceSignature = (
|
|
777
|
+
target: ReturnStatement,
|
|
778
|
+
nodeToReplaceWith: DetachedNode<ReturnStatement>,
|
|
779
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
780
|
+
) => void;
|
|
781
|
+
type SequenceExpressionReplaceSignature = (
|
|
782
|
+
target: SequenceExpression,
|
|
783
|
+
nodeToReplaceWith: DetachedNode<SequenceExpression>,
|
|
784
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
785
|
+
) => void;
|
|
786
|
+
type SpreadElementReplaceSignature = (
|
|
787
|
+
target: SpreadElement,
|
|
788
|
+
nodeToReplaceWith: DetachedNode<SpreadElement>,
|
|
789
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
790
|
+
) => void;
|
|
791
|
+
type StringLiteralTypeAnnotationReplaceSignature = (
|
|
792
|
+
target: StringLiteralTypeAnnotation,
|
|
793
|
+
nodeToReplaceWith: DetachedNode<StringLiteralTypeAnnotation>,
|
|
794
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
795
|
+
) => void;
|
|
796
|
+
type StringTypeAnnotationReplaceSignature = (
|
|
797
|
+
target: StringTypeAnnotation,
|
|
798
|
+
nodeToReplaceWith: DetachedNode<StringTypeAnnotation>,
|
|
799
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
800
|
+
) => void;
|
|
801
|
+
type SuperReplaceSignature = (
|
|
802
|
+
target: Super,
|
|
803
|
+
nodeToReplaceWith: DetachedNode<Super>,
|
|
804
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
805
|
+
) => void;
|
|
806
|
+
type SwitchCaseReplaceSignature = (
|
|
807
|
+
target: SwitchCase,
|
|
808
|
+
nodeToReplaceWith: DetachedNode<SwitchCase>,
|
|
809
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
810
|
+
) => void;
|
|
811
|
+
type SwitchStatementReplaceSignature = (
|
|
812
|
+
target: SwitchStatement,
|
|
813
|
+
nodeToReplaceWith: DetachedNode<SwitchStatement>,
|
|
814
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
815
|
+
) => void;
|
|
816
|
+
type SymbolTypeAnnotationReplaceSignature = (
|
|
817
|
+
target: SymbolTypeAnnotation,
|
|
818
|
+
nodeToReplaceWith: DetachedNode<SymbolTypeAnnotation>,
|
|
819
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
820
|
+
) => void;
|
|
821
|
+
type TaggedTemplateExpressionReplaceSignature = (
|
|
822
|
+
target: TaggedTemplateExpression,
|
|
823
|
+
nodeToReplaceWith: DetachedNode<TaggedTemplateExpression>,
|
|
824
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
825
|
+
) => void;
|
|
826
|
+
type TemplateElementReplaceSignature = (
|
|
827
|
+
target: TemplateElement,
|
|
828
|
+
nodeToReplaceWith: DetachedNode<TemplateElement>,
|
|
829
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
830
|
+
) => void;
|
|
831
|
+
type TemplateLiteralReplaceSignature = (
|
|
832
|
+
target: TemplateLiteral,
|
|
833
|
+
nodeToReplaceWith: DetachedNode<TemplateLiteral>,
|
|
834
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
835
|
+
) => void;
|
|
836
|
+
type ThisExpressionReplaceSignature = (
|
|
837
|
+
target: ThisExpression,
|
|
838
|
+
nodeToReplaceWith: DetachedNode<ThisExpression>,
|
|
839
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
840
|
+
) => void;
|
|
841
|
+
type ThisTypeAnnotationReplaceSignature = (
|
|
842
|
+
target: ThisTypeAnnotation,
|
|
843
|
+
nodeToReplaceWith: DetachedNode<ThisTypeAnnotation>,
|
|
844
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
845
|
+
) => void;
|
|
846
|
+
type ThrowStatementReplaceSignature = (
|
|
847
|
+
target: ThrowStatement,
|
|
848
|
+
nodeToReplaceWith: DetachedNode<ThrowStatement>,
|
|
849
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
850
|
+
) => void;
|
|
851
|
+
type TryStatementReplaceSignature = (
|
|
852
|
+
target: TryStatement,
|
|
853
|
+
nodeToReplaceWith: DetachedNode<TryStatement>,
|
|
854
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
855
|
+
) => void;
|
|
856
|
+
type TupleTypeAnnotationReplaceSignature = (
|
|
857
|
+
target: TupleTypeAnnotation,
|
|
858
|
+
nodeToReplaceWith: DetachedNode<TupleTypeAnnotation>,
|
|
859
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
860
|
+
) => void;
|
|
861
|
+
type TypeAliasReplaceSignature = (
|
|
862
|
+
target: TypeAlias,
|
|
863
|
+
nodeToReplaceWith: DetachedNode<TypeAlias>,
|
|
864
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
865
|
+
) => void;
|
|
866
|
+
type TypeAnnotationReplaceSignature = (
|
|
867
|
+
target: TypeAnnotation,
|
|
868
|
+
nodeToReplaceWith: DetachedNode<TypeAnnotation>,
|
|
869
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
870
|
+
) => void;
|
|
871
|
+
type TypeCastExpressionReplaceSignature = (
|
|
872
|
+
target: TypeCastExpression,
|
|
873
|
+
nodeToReplaceWith: DetachedNode<TypeCastExpression>,
|
|
874
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
875
|
+
) => void;
|
|
876
|
+
type TypeofTypeAnnotationReplaceSignature = (
|
|
877
|
+
target: TypeofTypeAnnotation,
|
|
878
|
+
nodeToReplaceWith: DetachedNode<TypeofTypeAnnotation>,
|
|
879
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
880
|
+
) => void;
|
|
881
|
+
type TypeParameterReplaceSignature = (
|
|
882
|
+
target: TypeParameter,
|
|
883
|
+
nodeToReplaceWith: DetachedNode<TypeParameter>,
|
|
884
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
885
|
+
) => void;
|
|
886
|
+
type TypeParameterDeclarationReplaceSignature = (
|
|
887
|
+
target: TypeParameterDeclaration,
|
|
888
|
+
nodeToReplaceWith: DetachedNode<TypeParameterDeclaration>,
|
|
889
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
890
|
+
) => void;
|
|
891
|
+
type TypeParameterInstantiationReplaceSignature = (
|
|
892
|
+
target: TypeParameterInstantiation,
|
|
893
|
+
nodeToReplaceWith: DetachedNode<TypeParameterInstantiation>,
|
|
894
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
895
|
+
) => void;
|
|
896
|
+
type UnaryExpressionReplaceSignature = (
|
|
897
|
+
target: UnaryExpression,
|
|
898
|
+
nodeToReplaceWith: DetachedNode<UnaryExpression>,
|
|
899
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
900
|
+
) => void;
|
|
901
|
+
type UnionTypeAnnotationReplaceSignature = (
|
|
902
|
+
target: UnionTypeAnnotation,
|
|
903
|
+
nodeToReplaceWith: DetachedNode<UnionTypeAnnotation>,
|
|
904
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
905
|
+
) => void;
|
|
906
|
+
type UpdateExpressionReplaceSignature = (
|
|
907
|
+
target: UpdateExpression,
|
|
908
|
+
nodeToReplaceWith: DetachedNode<UpdateExpression>,
|
|
909
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
910
|
+
) => void;
|
|
911
|
+
type VariableDeclarationReplaceSignature = (
|
|
912
|
+
target: VariableDeclaration,
|
|
913
|
+
nodeToReplaceWith: DetachedNode<VariableDeclaration>,
|
|
914
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
915
|
+
) => void;
|
|
916
|
+
type VariableDeclaratorReplaceSignature = (
|
|
917
|
+
target: VariableDeclarator,
|
|
918
|
+
nodeToReplaceWith: DetachedNode<VariableDeclarator>,
|
|
919
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
920
|
+
) => void;
|
|
921
|
+
type VarianceReplaceSignature = (
|
|
922
|
+
target: Variance,
|
|
923
|
+
nodeToReplaceWith: DetachedNode<Variance>,
|
|
924
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
925
|
+
) => void;
|
|
926
|
+
type VoidTypeAnnotationReplaceSignature = (
|
|
927
|
+
target: VoidTypeAnnotation,
|
|
928
|
+
nodeToReplaceWith: DetachedNode<VoidTypeAnnotation>,
|
|
929
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
930
|
+
) => void;
|
|
931
|
+
type WhileStatementReplaceSignature = (
|
|
932
|
+
target: WhileStatement,
|
|
933
|
+
nodeToReplaceWith: DetachedNode<WhileStatement>,
|
|
934
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
935
|
+
) => void;
|
|
936
|
+
type WithStatementReplaceSignature = (
|
|
937
|
+
target: WithStatement,
|
|
938
|
+
nodeToReplaceWith: DetachedNode<WithStatement>,
|
|
939
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
940
|
+
) => void;
|
|
941
|
+
type YieldExpressionReplaceSignature = (
|
|
942
|
+
target: YieldExpression,
|
|
943
|
+
nodeToReplaceWith: DetachedNode<YieldExpression>,
|
|
944
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
945
|
+
) => void;
|
|
946
|
+
type LiteralReplaceSignature = (
|
|
947
|
+
target: Literal,
|
|
948
|
+
nodeToReplaceWith: DetachedNode<Literal>,
|
|
949
|
+
options?: $ReadOnly<{keepComments?: boolean}>,
|
|
950
|
+
) => void;
|
|
951
|
+
export type TransformReplaceSignatures = AnyTypeAnnotationReplaceSignature &
|
|
952
|
+
ArrayExpressionReplaceSignature &
|
|
953
|
+
ArrayPatternReplaceSignature &
|
|
954
|
+
ArrayTypeAnnotationReplaceSignature &
|
|
955
|
+
ArrowFunctionExpressionReplaceSignature &
|
|
956
|
+
AssignmentExpressionReplaceSignature &
|
|
957
|
+
AssignmentPatternReplaceSignature &
|
|
958
|
+
AwaitExpressionReplaceSignature &
|
|
959
|
+
BigIntLiteralTypeAnnotationReplaceSignature &
|
|
960
|
+
BinaryExpressionReplaceSignature &
|
|
961
|
+
BlockStatementReplaceSignature &
|
|
962
|
+
BooleanLiteralTypeAnnotationReplaceSignature &
|
|
963
|
+
BooleanTypeAnnotationReplaceSignature &
|
|
964
|
+
BreakStatementReplaceSignature &
|
|
965
|
+
CallExpressionReplaceSignature &
|
|
966
|
+
CatchClauseReplaceSignature &
|
|
967
|
+
ClassBodyReplaceSignature &
|
|
968
|
+
ClassDeclarationReplaceSignature &
|
|
969
|
+
ClassExpressionReplaceSignature &
|
|
970
|
+
ClassImplementsReplaceSignature &
|
|
971
|
+
ClassPrivatePropertyReplaceSignature &
|
|
972
|
+
ClassPropertyReplaceSignature &
|
|
973
|
+
ConditionalExpressionReplaceSignature &
|
|
974
|
+
ContinueStatementReplaceSignature &
|
|
975
|
+
DebuggerStatementReplaceSignature &
|
|
976
|
+
DeclareClassReplaceSignature &
|
|
977
|
+
DeclaredPredicateReplaceSignature &
|
|
978
|
+
DeclareExportAllDeclarationReplaceSignature &
|
|
979
|
+
DeclareExportDeclarationReplaceSignature &
|
|
980
|
+
DeclareFunctionReplaceSignature &
|
|
981
|
+
DeclareInterfaceReplaceSignature &
|
|
982
|
+
DeclareModuleReplaceSignature &
|
|
983
|
+
DeclareModuleExportsReplaceSignature &
|
|
984
|
+
DeclareOpaqueTypeReplaceSignature &
|
|
985
|
+
DeclareTypeAliasReplaceSignature &
|
|
986
|
+
DeclareVariableReplaceSignature &
|
|
987
|
+
DoWhileStatementReplaceSignature &
|
|
988
|
+
EmptyStatementReplaceSignature &
|
|
989
|
+
EmptyTypeAnnotationReplaceSignature &
|
|
990
|
+
EnumBooleanBodyReplaceSignature &
|
|
991
|
+
EnumBooleanMemberReplaceSignature &
|
|
992
|
+
EnumDeclarationReplaceSignature &
|
|
993
|
+
EnumDefaultedMemberReplaceSignature &
|
|
994
|
+
EnumNumberBodyReplaceSignature &
|
|
995
|
+
EnumNumberMemberReplaceSignature &
|
|
996
|
+
EnumStringBodyReplaceSignature &
|
|
997
|
+
EnumStringMemberReplaceSignature &
|
|
998
|
+
EnumSymbolBodyReplaceSignature &
|
|
999
|
+
ExistsTypeAnnotationReplaceSignature &
|
|
1000
|
+
ExportAllDeclarationReplaceSignature &
|
|
1001
|
+
ExportDefaultDeclarationReplaceSignature &
|
|
1002
|
+
ExportNamedDeclarationReplaceSignature &
|
|
1003
|
+
ExportNamespaceSpecifierReplaceSignature &
|
|
1004
|
+
ExportSpecifierReplaceSignature &
|
|
1005
|
+
ExpressionStatementReplaceSignature &
|
|
1006
|
+
ForInStatementReplaceSignature &
|
|
1007
|
+
ForOfStatementReplaceSignature &
|
|
1008
|
+
ForStatementReplaceSignature &
|
|
1009
|
+
FunctionDeclarationReplaceSignature &
|
|
1010
|
+
FunctionExpressionReplaceSignature &
|
|
1011
|
+
FunctionTypeAnnotationReplaceSignature &
|
|
1012
|
+
FunctionTypeParamReplaceSignature &
|
|
1013
|
+
GenericTypeAnnotationReplaceSignature &
|
|
1014
|
+
IdentifierReplaceSignature &
|
|
1015
|
+
IfStatementReplaceSignature &
|
|
1016
|
+
ImportAttributeReplaceSignature &
|
|
1017
|
+
ImportDeclarationReplaceSignature &
|
|
1018
|
+
ImportDefaultSpecifierReplaceSignature &
|
|
1019
|
+
ImportExpressionReplaceSignature &
|
|
1020
|
+
ImportNamespaceSpecifierReplaceSignature &
|
|
1021
|
+
ImportSpecifierReplaceSignature &
|
|
1022
|
+
IndexedAccessTypeReplaceSignature &
|
|
1023
|
+
InferredPredicateReplaceSignature &
|
|
1024
|
+
InterfaceDeclarationReplaceSignature &
|
|
1025
|
+
InterfaceExtendsReplaceSignature &
|
|
1026
|
+
InterfaceTypeAnnotationReplaceSignature &
|
|
1027
|
+
IntersectionTypeAnnotationReplaceSignature &
|
|
1028
|
+
JSXAttributeReplaceSignature &
|
|
1029
|
+
JSXClosingElementReplaceSignature &
|
|
1030
|
+
JSXClosingFragmentReplaceSignature &
|
|
1031
|
+
JSXElementReplaceSignature &
|
|
1032
|
+
JSXEmptyExpressionReplaceSignature &
|
|
1033
|
+
JSXExpressionContainerReplaceSignature &
|
|
1034
|
+
JSXFragmentReplaceSignature &
|
|
1035
|
+
JSXIdentifierReplaceSignature &
|
|
1036
|
+
JSXMemberExpressionReplaceSignature &
|
|
1037
|
+
JSXNamespacedNameReplaceSignature &
|
|
1038
|
+
JSXOpeningElementReplaceSignature &
|
|
1039
|
+
JSXOpeningFragmentReplaceSignature &
|
|
1040
|
+
JSXSpreadAttributeReplaceSignature &
|
|
1041
|
+
JSXSpreadChildReplaceSignature &
|
|
1042
|
+
JSXTextReplaceSignature &
|
|
1043
|
+
LabeledStatementReplaceSignature &
|
|
1044
|
+
LogicalExpressionReplaceSignature &
|
|
1045
|
+
MemberExpressionReplaceSignature &
|
|
1046
|
+
MetaPropertyReplaceSignature &
|
|
1047
|
+
MethodDefinitionReplaceSignature &
|
|
1048
|
+
MixedTypeAnnotationReplaceSignature &
|
|
1049
|
+
NewExpressionReplaceSignature &
|
|
1050
|
+
NullableTypeAnnotationReplaceSignature &
|
|
1051
|
+
NullLiteralTypeAnnotationReplaceSignature &
|
|
1052
|
+
NumberLiteralTypeAnnotationReplaceSignature &
|
|
1053
|
+
NumberTypeAnnotationReplaceSignature &
|
|
1054
|
+
ObjectExpressionReplaceSignature &
|
|
1055
|
+
ObjectPatternReplaceSignature &
|
|
1056
|
+
ObjectTypeAnnotationReplaceSignature &
|
|
1057
|
+
ObjectTypeCallPropertyReplaceSignature &
|
|
1058
|
+
ObjectTypeIndexerReplaceSignature &
|
|
1059
|
+
ObjectTypeInternalSlotReplaceSignature &
|
|
1060
|
+
ObjectTypePropertyReplaceSignature &
|
|
1061
|
+
ObjectTypeSpreadPropertyReplaceSignature &
|
|
1062
|
+
OpaqueTypeReplaceSignature &
|
|
1063
|
+
OptionalCallExpressionReplaceSignature &
|
|
1064
|
+
OptionalIndexedAccessTypeReplaceSignature &
|
|
1065
|
+
OptionalMemberExpressionReplaceSignature &
|
|
1066
|
+
PrivateNameReplaceSignature &
|
|
1067
|
+
ProgramReplaceSignature &
|
|
1068
|
+
PropertyReplaceSignature &
|
|
1069
|
+
QualifiedTypeIdentifierReplaceSignature &
|
|
1070
|
+
RestElementReplaceSignature &
|
|
1071
|
+
ReturnStatementReplaceSignature &
|
|
1072
|
+
SequenceExpressionReplaceSignature &
|
|
1073
|
+
SpreadElementReplaceSignature &
|
|
1074
|
+
StringLiteralTypeAnnotationReplaceSignature &
|
|
1075
|
+
StringTypeAnnotationReplaceSignature &
|
|
1076
|
+
SuperReplaceSignature &
|
|
1077
|
+
SwitchCaseReplaceSignature &
|
|
1078
|
+
SwitchStatementReplaceSignature &
|
|
1079
|
+
SymbolTypeAnnotationReplaceSignature &
|
|
1080
|
+
TaggedTemplateExpressionReplaceSignature &
|
|
1081
|
+
TemplateElementReplaceSignature &
|
|
1082
|
+
TemplateLiteralReplaceSignature &
|
|
1083
|
+
ThisExpressionReplaceSignature &
|
|
1084
|
+
ThisTypeAnnotationReplaceSignature &
|
|
1085
|
+
ThrowStatementReplaceSignature &
|
|
1086
|
+
TryStatementReplaceSignature &
|
|
1087
|
+
TupleTypeAnnotationReplaceSignature &
|
|
1088
|
+
TypeAliasReplaceSignature &
|
|
1089
|
+
TypeAnnotationReplaceSignature &
|
|
1090
|
+
TypeCastExpressionReplaceSignature &
|
|
1091
|
+
TypeofTypeAnnotationReplaceSignature &
|
|
1092
|
+
TypeParameterReplaceSignature &
|
|
1093
|
+
TypeParameterDeclarationReplaceSignature &
|
|
1094
|
+
TypeParameterInstantiationReplaceSignature &
|
|
1095
|
+
UnaryExpressionReplaceSignature &
|
|
1096
|
+
UnionTypeAnnotationReplaceSignature &
|
|
1097
|
+
UpdateExpressionReplaceSignature &
|
|
1098
|
+
VariableDeclarationReplaceSignature &
|
|
1099
|
+
VariableDeclaratorReplaceSignature &
|
|
1100
|
+
VarianceReplaceSignature &
|
|
1101
|
+
VoidTypeAnnotationReplaceSignature &
|
|
1102
|
+
WhileStatementReplaceSignature &
|
|
1103
|
+
WithStatementReplaceSignature &
|
|
1104
|
+
YieldExpressionReplaceSignature &
|
|
1105
|
+
LiteralReplaceSignature;
|