hermes-transform 0.10.0 → 0.10.1
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/dist/detachedNode.js.flow +3 -3
- package/dist/generated/TransformCloneSignatures.js.flow +315 -318
- package/dist/generated/TransformModifySignatures.js.flow +158 -158
- package/dist/generated/TransformReplaceSignatures.js.flow +1 -1
- package/dist/generated/node-types.js +1 -1
- package/dist/generated/node-types.js.flow +1 -1
- package/dist/transform/transformAST.js +1 -1
- package/dist/transform/transformAST.js.flow +1 -1
- package/dist/traverse/NodeEventGenerator.js +3 -3
- package/dist/traverse/NodeEventGenerator.js.flow +3 -3
- package/package.json +4 -4
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
// lint directives to let us do some basic validation of generated files
|
|
19
19
|
/* eslint no-undef: 'error', no-unused-vars: ['error', {vars: "local"}], no-redeclare: 'error' */
|
|
20
|
-
/* global $NonMaybeType,
|
|
20
|
+
/* global $NonMaybeType, Partial, $ReadOnly, $ReadOnlyArray */
|
|
21
21
|
|
|
22
22
|
'use strict';
|
|
23
23
|
|
|
@@ -342,631 +342,631 @@ import type {
|
|
|
342
342
|
|
|
343
343
|
type AnyTypeAnnotationModifySignature = (
|
|
344
344
|
node: ?AnyTypeAnnotation,
|
|
345
|
-
newProps:
|
|
345
|
+
newProps: Partial<AnyTypeAnnotationProps>,
|
|
346
346
|
) => void;
|
|
347
347
|
type ArrayExpressionModifySignature = (
|
|
348
348
|
node: ?ArrayExpression,
|
|
349
|
-
newProps:
|
|
349
|
+
newProps: Partial<ArrayExpressionProps>,
|
|
350
350
|
) => void;
|
|
351
351
|
type ArrayPatternModifySignature = (
|
|
352
352
|
node: ?ArrayPattern,
|
|
353
|
-
newProps:
|
|
353
|
+
newProps: Partial<ArrayPatternProps>,
|
|
354
354
|
) => void;
|
|
355
355
|
type ArrayTypeAnnotationModifySignature = (
|
|
356
356
|
node: ?ArrayTypeAnnotation,
|
|
357
|
-
newProps:
|
|
357
|
+
newProps: Partial<ArrayTypeAnnotationProps>,
|
|
358
358
|
) => void;
|
|
359
359
|
type ArrowFunctionExpressionModifySignature = (
|
|
360
360
|
node: ?ArrowFunctionExpression,
|
|
361
|
-
newProps:
|
|
361
|
+
newProps: Partial<ArrowFunctionExpressionProps>,
|
|
362
362
|
) => void;
|
|
363
363
|
type AssignmentExpressionModifySignature = (
|
|
364
364
|
node: ?AssignmentExpression,
|
|
365
|
-
newProps:
|
|
365
|
+
newProps: Partial<AssignmentExpressionProps>,
|
|
366
366
|
) => void;
|
|
367
367
|
type AssignmentPatternModifySignature = (
|
|
368
368
|
node: ?AssignmentPattern,
|
|
369
|
-
newProps:
|
|
369
|
+
newProps: Partial<AssignmentPatternProps>,
|
|
370
370
|
) => void;
|
|
371
371
|
type AwaitExpressionModifySignature = (
|
|
372
372
|
node: ?AwaitExpression,
|
|
373
|
-
newProps:
|
|
373
|
+
newProps: Partial<AwaitExpressionProps>,
|
|
374
374
|
) => void;
|
|
375
375
|
type BigIntLiteralModifySignature = (
|
|
376
376
|
node: ?BigIntLiteral,
|
|
377
|
-
newProps:
|
|
377
|
+
newProps: Partial<BigIntLiteralProps>,
|
|
378
378
|
) => void;
|
|
379
379
|
type BigIntLiteralTypeAnnotationModifySignature = (
|
|
380
380
|
node: ?BigIntLiteralTypeAnnotation,
|
|
381
|
-
newProps:
|
|
381
|
+
newProps: Partial<BigIntLiteralTypeAnnotationProps>,
|
|
382
382
|
) => void;
|
|
383
383
|
type BigIntTypeAnnotationModifySignature = (
|
|
384
384
|
node: ?BigIntTypeAnnotation,
|
|
385
|
-
newProps:
|
|
385
|
+
newProps: Partial<BigIntTypeAnnotationProps>,
|
|
386
386
|
) => void;
|
|
387
387
|
type BinaryExpressionModifySignature = (
|
|
388
388
|
node: ?BinaryExpression,
|
|
389
|
-
newProps:
|
|
389
|
+
newProps: Partial<BinaryExpressionProps>,
|
|
390
390
|
) => void;
|
|
391
391
|
type BlockStatementModifySignature = (
|
|
392
392
|
node: ?BlockStatement,
|
|
393
|
-
newProps:
|
|
393
|
+
newProps: Partial<BlockStatementProps>,
|
|
394
394
|
) => void;
|
|
395
395
|
type BooleanLiteralModifySignature = (
|
|
396
396
|
node: ?BooleanLiteral,
|
|
397
|
-
newProps:
|
|
397
|
+
newProps: Partial<BooleanLiteralProps>,
|
|
398
398
|
) => void;
|
|
399
399
|
type BooleanLiteralTypeAnnotationModifySignature = (
|
|
400
400
|
node: ?BooleanLiteralTypeAnnotation,
|
|
401
|
-
newProps:
|
|
401
|
+
newProps: Partial<BooleanLiteralTypeAnnotationProps>,
|
|
402
402
|
) => void;
|
|
403
403
|
type BooleanTypeAnnotationModifySignature = (
|
|
404
404
|
node: ?BooleanTypeAnnotation,
|
|
405
|
-
newProps:
|
|
405
|
+
newProps: Partial<BooleanTypeAnnotationProps>,
|
|
406
406
|
) => void;
|
|
407
407
|
type BreakStatementModifySignature = (
|
|
408
408
|
node: ?BreakStatement,
|
|
409
|
-
newProps:
|
|
409
|
+
newProps: Partial<BreakStatementProps>,
|
|
410
410
|
) => void;
|
|
411
411
|
type CallExpressionModifySignature = (
|
|
412
412
|
node: ?CallExpression,
|
|
413
|
-
newProps:
|
|
413
|
+
newProps: Partial<CallExpressionProps>,
|
|
414
414
|
) => void;
|
|
415
415
|
type CatchClauseModifySignature = (
|
|
416
416
|
node: ?CatchClause,
|
|
417
|
-
newProps:
|
|
417
|
+
newProps: Partial<CatchClauseProps>,
|
|
418
418
|
) => void;
|
|
419
419
|
type ChainExpressionModifySignature = (
|
|
420
420
|
node: ?ChainExpression,
|
|
421
|
-
newProps:
|
|
421
|
+
newProps: Partial<ChainExpressionProps>,
|
|
422
422
|
) => void;
|
|
423
423
|
type ClassBodyModifySignature = (
|
|
424
424
|
node: ?ClassBody,
|
|
425
|
-
newProps:
|
|
425
|
+
newProps: Partial<ClassBodyProps>,
|
|
426
426
|
) => void;
|
|
427
427
|
type ClassDeclarationModifySignature = (
|
|
428
428
|
node: ?ClassDeclaration,
|
|
429
|
-
newProps:
|
|
429
|
+
newProps: Partial<ClassDeclarationProps>,
|
|
430
430
|
) => void;
|
|
431
431
|
type ClassExpressionModifySignature = (
|
|
432
432
|
node: ?ClassExpression,
|
|
433
|
-
newProps:
|
|
433
|
+
newProps: Partial<ClassExpressionProps>,
|
|
434
434
|
) => void;
|
|
435
435
|
type ClassImplementsModifySignature = (
|
|
436
436
|
node: ?ClassImplements,
|
|
437
|
-
newProps:
|
|
437
|
+
newProps: Partial<ClassImplementsProps>,
|
|
438
438
|
) => void;
|
|
439
439
|
type ConditionalExpressionModifySignature = (
|
|
440
440
|
node: ?ConditionalExpression,
|
|
441
|
-
newProps:
|
|
441
|
+
newProps: Partial<ConditionalExpressionProps>,
|
|
442
442
|
) => void;
|
|
443
443
|
type ContinueStatementModifySignature = (
|
|
444
444
|
node: ?ContinueStatement,
|
|
445
|
-
newProps:
|
|
445
|
+
newProps: Partial<ContinueStatementProps>,
|
|
446
446
|
) => void;
|
|
447
447
|
type DebuggerStatementModifySignature = (
|
|
448
448
|
node: ?DebuggerStatement,
|
|
449
|
-
newProps:
|
|
449
|
+
newProps: Partial<DebuggerStatementProps>,
|
|
450
450
|
) => void;
|
|
451
451
|
type DeclareClassModifySignature = (
|
|
452
452
|
node: ?DeclareClass,
|
|
453
|
-
newProps:
|
|
453
|
+
newProps: Partial<DeclareClassProps>,
|
|
454
454
|
) => void;
|
|
455
455
|
type DeclaredPredicateModifySignature = (
|
|
456
456
|
node: ?DeclaredPredicate,
|
|
457
|
-
newProps:
|
|
457
|
+
newProps: Partial<DeclaredPredicateProps>,
|
|
458
458
|
) => void;
|
|
459
459
|
type DeclareExportAllDeclarationModifySignature = (
|
|
460
460
|
node: ?DeclareExportAllDeclaration,
|
|
461
|
-
newProps:
|
|
461
|
+
newProps: Partial<DeclareExportAllDeclarationProps>,
|
|
462
462
|
) => void;
|
|
463
463
|
type DeclareExportDeclarationModifySignature = (
|
|
464
464
|
node: ?DeclareExportDeclaration,
|
|
465
|
-
newProps:
|
|
465
|
+
newProps: Partial<DeclareExportDeclarationProps>,
|
|
466
466
|
) => void;
|
|
467
467
|
type DeclareFunctionModifySignature = (
|
|
468
468
|
node: ?DeclareFunction,
|
|
469
|
-
newProps:
|
|
469
|
+
newProps: Partial<DeclareFunctionProps>,
|
|
470
470
|
) => void;
|
|
471
471
|
type DeclareInterfaceModifySignature = (
|
|
472
472
|
node: ?DeclareInterface,
|
|
473
|
-
newProps:
|
|
473
|
+
newProps: Partial<DeclareInterfaceProps>,
|
|
474
474
|
) => void;
|
|
475
475
|
type DeclareModuleModifySignature = (
|
|
476
476
|
node: ?DeclareModule,
|
|
477
|
-
newProps:
|
|
477
|
+
newProps: Partial<DeclareModuleProps>,
|
|
478
478
|
) => void;
|
|
479
479
|
type DeclareModuleExportsModifySignature = (
|
|
480
480
|
node: ?DeclareModuleExports,
|
|
481
|
-
newProps:
|
|
481
|
+
newProps: Partial<DeclareModuleExportsProps>,
|
|
482
482
|
) => void;
|
|
483
483
|
type DeclareOpaqueTypeModifySignature = (
|
|
484
484
|
node: ?DeclareOpaqueType,
|
|
485
|
-
newProps:
|
|
485
|
+
newProps: Partial<DeclareOpaqueTypeProps>,
|
|
486
486
|
) => void;
|
|
487
487
|
type DeclareTypeAliasModifySignature = (
|
|
488
488
|
node: ?DeclareTypeAlias,
|
|
489
|
-
newProps:
|
|
489
|
+
newProps: Partial<DeclareTypeAliasProps>,
|
|
490
490
|
) => void;
|
|
491
491
|
type DeclareVariableModifySignature = (
|
|
492
492
|
node: ?DeclareVariable,
|
|
493
|
-
newProps:
|
|
493
|
+
newProps: Partial<DeclareVariableProps>,
|
|
494
494
|
) => void;
|
|
495
495
|
type DoWhileStatementModifySignature = (
|
|
496
496
|
node: ?DoWhileStatement,
|
|
497
|
-
newProps:
|
|
497
|
+
newProps: Partial<DoWhileStatementProps>,
|
|
498
498
|
) => void;
|
|
499
499
|
type EmptyStatementModifySignature = (
|
|
500
500
|
node: ?EmptyStatement,
|
|
501
|
-
newProps:
|
|
501
|
+
newProps: Partial<EmptyStatementProps>,
|
|
502
502
|
) => void;
|
|
503
503
|
type EmptyTypeAnnotationModifySignature = (
|
|
504
504
|
node: ?EmptyTypeAnnotation,
|
|
505
|
-
newProps:
|
|
505
|
+
newProps: Partial<EmptyTypeAnnotationProps>,
|
|
506
506
|
) => void;
|
|
507
507
|
type EnumBooleanBodyModifySignature = (
|
|
508
508
|
node: ?EnumBooleanBody,
|
|
509
|
-
newProps:
|
|
509
|
+
newProps: Partial<EnumBooleanBodyProps>,
|
|
510
510
|
) => void;
|
|
511
511
|
type EnumBooleanMemberModifySignature = (
|
|
512
512
|
node: ?EnumBooleanMember,
|
|
513
|
-
newProps:
|
|
513
|
+
newProps: Partial<EnumBooleanMemberProps>,
|
|
514
514
|
) => void;
|
|
515
515
|
type EnumDeclarationModifySignature = (
|
|
516
516
|
node: ?EnumDeclaration,
|
|
517
|
-
newProps:
|
|
517
|
+
newProps: Partial<EnumDeclarationProps>,
|
|
518
518
|
) => void;
|
|
519
519
|
type EnumDefaultedMemberModifySignature = (
|
|
520
520
|
node: ?EnumDefaultedMember,
|
|
521
|
-
newProps:
|
|
521
|
+
newProps: Partial<EnumDefaultedMemberProps>,
|
|
522
522
|
) => void;
|
|
523
523
|
type EnumNumberBodyModifySignature = (
|
|
524
524
|
node: ?EnumNumberBody,
|
|
525
|
-
newProps:
|
|
525
|
+
newProps: Partial<EnumNumberBodyProps>,
|
|
526
526
|
) => void;
|
|
527
527
|
type EnumNumberMemberModifySignature = (
|
|
528
528
|
node: ?EnumNumberMember,
|
|
529
|
-
newProps:
|
|
529
|
+
newProps: Partial<EnumNumberMemberProps>,
|
|
530
530
|
) => void;
|
|
531
531
|
type EnumStringBodyModifySignature = (
|
|
532
532
|
node: ?EnumStringBody,
|
|
533
|
-
newProps:
|
|
533
|
+
newProps: Partial<EnumStringBodyProps>,
|
|
534
534
|
) => void;
|
|
535
535
|
type EnumStringMemberModifySignature = (
|
|
536
536
|
node: ?EnumStringMember,
|
|
537
|
-
newProps:
|
|
537
|
+
newProps: Partial<EnumStringMemberProps>,
|
|
538
538
|
) => void;
|
|
539
539
|
type EnumSymbolBodyModifySignature = (
|
|
540
540
|
node: ?EnumSymbolBody,
|
|
541
|
-
newProps:
|
|
541
|
+
newProps: Partial<EnumSymbolBodyProps>,
|
|
542
542
|
) => void;
|
|
543
543
|
type ExistsTypeAnnotationModifySignature = (
|
|
544
544
|
node: ?ExistsTypeAnnotation,
|
|
545
|
-
newProps:
|
|
545
|
+
newProps: Partial<ExistsTypeAnnotationProps>,
|
|
546
546
|
) => void;
|
|
547
547
|
type ExportAllDeclarationModifySignature = (
|
|
548
548
|
node: ?ExportAllDeclaration,
|
|
549
|
-
newProps:
|
|
549
|
+
newProps: Partial<ExportAllDeclarationProps>,
|
|
550
550
|
) => void;
|
|
551
551
|
type ExportDefaultDeclarationModifySignature = (
|
|
552
552
|
node: ?ExportDefaultDeclaration,
|
|
553
|
-
newProps:
|
|
553
|
+
newProps: Partial<ExportDefaultDeclarationProps>,
|
|
554
554
|
) => void;
|
|
555
555
|
type ExportNamedDeclarationModifySignature = (
|
|
556
556
|
node: ?ExportNamedDeclaration,
|
|
557
|
-
newProps:
|
|
557
|
+
newProps: Partial<ExportNamedDeclarationProps>,
|
|
558
558
|
) => void;
|
|
559
559
|
type ExportSpecifierModifySignature = (
|
|
560
560
|
node: ?ExportSpecifier,
|
|
561
|
-
newProps:
|
|
561
|
+
newProps: Partial<ExportSpecifierProps>,
|
|
562
562
|
) => void;
|
|
563
563
|
type ExpressionStatementModifySignature = (
|
|
564
564
|
node: ?ExpressionStatement,
|
|
565
|
-
newProps:
|
|
565
|
+
newProps: Partial<ExpressionStatementProps>,
|
|
566
566
|
) => void;
|
|
567
567
|
type ForInStatementModifySignature = (
|
|
568
568
|
node: ?ForInStatement,
|
|
569
|
-
newProps:
|
|
569
|
+
newProps: Partial<ForInStatementProps>,
|
|
570
570
|
) => void;
|
|
571
571
|
type ForOfStatementModifySignature = (
|
|
572
572
|
node: ?ForOfStatement,
|
|
573
|
-
newProps:
|
|
573
|
+
newProps: Partial<ForOfStatementProps>,
|
|
574
574
|
) => void;
|
|
575
575
|
type ForStatementModifySignature = (
|
|
576
576
|
node: ?ForStatement,
|
|
577
|
-
newProps:
|
|
577
|
+
newProps: Partial<ForStatementProps>,
|
|
578
578
|
) => void;
|
|
579
579
|
type FunctionDeclarationModifySignature = (
|
|
580
580
|
node: ?FunctionDeclaration,
|
|
581
|
-
newProps:
|
|
581
|
+
newProps: Partial<FunctionDeclarationProps>,
|
|
582
582
|
) => void;
|
|
583
583
|
type FunctionExpressionModifySignature = (
|
|
584
584
|
node: ?FunctionExpression,
|
|
585
|
-
newProps:
|
|
585
|
+
newProps: Partial<FunctionExpressionProps>,
|
|
586
586
|
) => void;
|
|
587
587
|
type FunctionTypeAnnotationModifySignature = (
|
|
588
588
|
node: ?FunctionTypeAnnotation,
|
|
589
|
-
newProps:
|
|
589
|
+
newProps: Partial<FunctionTypeAnnotationProps>,
|
|
590
590
|
) => void;
|
|
591
591
|
type FunctionTypeParamModifySignature = (
|
|
592
592
|
node: ?FunctionTypeParam,
|
|
593
|
-
newProps:
|
|
593
|
+
newProps: Partial<FunctionTypeParamProps>,
|
|
594
594
|
) => void;
|
|
595
595
|
type GenericTypeAnnotationModifySignature = (
|
|
596
596
|
node: ?GenericTypeAnnotation,
|
|
597
|
-
newProps:
|
|
597
|
+
newProps: Partial<GenericTypeAnnotationProps>,
|
|
598
598
|
) => void;
|
|
599
599
|
type IdentifierModifySignature = (
|
|
600
600
|
node: ?Identifier,
|
|
601
|
-
newProps:
|
|
601
|
+
newProps: Partial<IdentifierProps>,
|
|
602
602
|
) => void;
|
|
603
603
|
type IfStatementModifySignature = (
|
|
604
604
|
node: ?IfStatement,
|
|
605
|
-
newProps:
|
|
605
|
+
newProps: Partial<IfStatementProps>,
|
|
606
606
|
) => void;
|
|
607
607
|
type ImportAttributeModifySignature = (
|
|
608
608
|
node: ?ImportAttribute,
|
|
609
|
-
newProps:
|
|
609
|
+
newProps: Partial<ImportAttributeProps>,
|
|
610
610
|
) => void;
|
|
611
611
|
type ImportDeclarationModifySignature = (
|
|
612
612
|
node: ?ImportDeclaration,
|
|
613
|
-
newProps:
|
|
613
|
+
newProps: Partial<ImportDeclarationProps>,
|
|
614
614
|
) => void;
|
|
615
615
|
type ImportDefaultSpecifierModifySignature = (
|
|
616
616
|
node: ?ImportDefaultSpecifier,
|
|
617
|
-
newProps:
|
|
617
|
+
newProps: Partial<ImportDefaultSpecifierProps>,
|
|
618
618
|
) => void;
|
|
619
619
|
type ImportExpressionModifySignature = (
|
|
620
620
|
node: ?ImportExpression,
|
|
621
|
-
newProps:
|
|
621
|
+
newProps: Partial<ImportExpressionProps>,
|
|
622
622
|
) => void;
|
|
623
623
|
type ImportNamespaceSpecifierModifySignature = (
|
|
624
624
|
node: ?ImportNamespaceSpecifier,
|
|
625
|
-
newProps:
|
|
625
|
+
newProps: Partial<ImportNamespaceSpecifierProps>,
|
|
626
626
|
) => void;
|
|
627
627
|
type ImportSpecifierModifySignature = (
|
|
628
628
|
node: ?ImportSpecifier,
|
|
629
|
-
newProps:
|
|
629
|
+
newProps: Partial<ImportSpecifierProps>,
|
|
630
630
|
) => void;
|
|
631
631
|
type IndexedAccessTypeModifySignature = (
|
|
632
632
|
node: ?IndexedAccessType,
|
|
633
|
-
newProps:
|
|
633
|
+
newProps: Partial<IndexedAccessTypeProps>,
|
|
634
634
|
) => void;
|
|
635
635
|
type InferredPredicateModifySignature = (
|
|
636
636
|
node: ?InferredPredicate,
|
|
637
|
-
newProps:
|
|
637
|
+
newProps: Partial<InferredPredicateProps>,
|
|
638
638
|
) => void;
|
|
639
639
|
type InterfaceDeclarationModifySignature = (
|
|
640
640
|
node: ?InterfaceDeclaration,
|
|
641
|
-
newProps:
|
|
641
|
+
newProps: Partial<InterfaceDeclarationProps>,
|
|
642
642
|
) => void;
|
|
643
643
|
type InterfaceExtendsModifySignature = (
|
|
644
644
|
node: ?InterfaceExtends,
|
|
645
|
-
newProps:
|
|
645
|
+
newProps: Partial<InterfaceExtendsProps>,
|
|
646
646
|
) => void;
|
|
647
647
|
type InterfaceTypeAnnotationModifySignature = (
|
|
648
648
|
node: ?InterfaceTypeAnnotation,
|
|
649
|
-
newProps:
|
|
649
|
+
newProps: Partial<InterfaceTypeAnnotationProps>,
|
|
650
650
|
) => void;
|
|
651
651
|
type IntersectionTypeAnnotationModifySignature = (
|
|
652
652
|
node: ?IntersectionTypeAnnotation,
|
|
653
|
-
newProps:
|
|
653
|
+
newProps: Partial<IntersectionTypeAnnotationProps>,
|
|
654
654
|
) => void;
|
|
655
655
|
type JSXAttributeModifySignature = (
|
|
656
656
|
node: ?JSXAttribute,
|
|
657
|
-
newProps:
|
|
657
|
+
newProps: Partial<JSXAttributeProps>,
|
|
658
658
|
) => void;
|
|
659
659
|
type JSXClosingElementModifySignature = (
|
|
660
660
|
node: ?JSXClosingElement,
|
|
661
|
-
newProps:
|
|
661
|
+
newProps: Partial<JSXClosingElementProps>,
|
|
662
662
|
) => void;
|
|
663
663
|
type JSXClosingFragmentModifySignature = (
|
|
664
664
|
node: ?JSXClosingFragment,
|
|
665
|
-
newProps:
|
|
665
|
+
newProps: Partial<JSXClosingFragmentProps>,
|
|
666
666
|
) => void;
|
|
667
667
|
type JSXElementModifySignature = (
|
|
668
668
|
node: ?JSXElement,
|
|
669
|
-
newProps:
|
|
669
|
+
newProps: Partial<JSXElementProps>,
|
|
670
670
|
) => void;
|
|
671
671
|
type JSXEmptyExpressionModifySignature = (
|
|
672
672
|
node: ?JSXEmptyExpression,
|
|
673
|
-
newProps:
|
|
673
|
+
newProps: Partial<JSXEmptyExpressionProps>,
|
|
674
674
|
) => void;
|
|
675
675
|
type JSXExpressionContainerModifySignature = (
|
|
676
676
|
node: ?JSXExpressionContainer,
|
|
677
|
-
newProps:
|
|
677
|
+
newProps: Partial<JSXExpressionContainerProps>,
|
|
678
678
|
) => void;
|
|
679
679
|
type JSXFragmentModifySignature = (
|
|
680
680
|
node: ?JSXFragment,
|
|
681
|
-
newProps:
|
|
681
|
+
newProps: Partial<JSXFragmentProps>,
|
|
682
682
|
) => void;
|
|
683
683
|
type JSXIdentifierModifySignature = (
|
|
684
684
|
node: ?JSXIdentifier,
|
|
685
|
-
newProps:
|
|
685
|
+
newProps: Partial<JSXIdentifierProps>,
|
|
686
686
|
) => void;
|
|
687
687
|
type JSXMemberExpressionModifySignature = (
|
|
688
688
|
node: ?JSXMemberExpression,
|
|
689
|
-
newProps:
|
|
689
|
+
newProps: Partial<JSXMemberExpressionProps>,
|
|
690
690
|
) => void;
|
|
691
691
|
type JSXNamespacedNameModifySignature = (
|
|
692
692
|
node: ?JSXNamespacedName,
|
|
693
|
-
newProps:
|
|
693
|
+
newProps: Partial<JSXNamespacedNameProps>,
|
|
694
694
|
) => void;
|
|
695
695
|
type JSXOpeningElementModifySignature = (
|
|
696
696
|
node: ?JSXOpeningElement,
|
|
697
|
-
newProps:
|
|
697
|
+
newProps: Partial<JSXOpeningElementProps>,
|
|
698
698
|
) => void;
|
|
699
699
|
type JSXOpeningFragmentModifySignature = (
|
|
700
700
|
node: ?JSXOpeningFragment,
|
|
701
|
-
newProps:
|
|
701
|
+
newProps: Partial<JSXOpeningFragmentProps>,
|
|
702
702
|
) => void;
|
|
703
703
|
type JSXSpreadAttributeModifySignature = (
|
|
704
704
|
node: ?JSXSpreadAttribute,
|
|
705
|
-
newProps:
|
|
705
|
+
newProps: Partial<JSXSpreadAttributeProps>,
|
|
706
706
|
) => void;
|
|
707
707
|
type JSXSpreadChildModifySignature = (
|
|
708
708
|
node: ?JSXSpreadChild,
|
|
709
|
-
newProps:
|
|
709
|
+
newProps: Partial<JSXSpreadChildProps>,
|
|
710
710
|
) => void;
|
|
711
711
|
type JSXTextModifySignature = (
|
|
712
712
|
node: ?JSXText,
|
|
713
|
-
newProps:
|
|
713
|
+
newProps: Partial<JSXTextProps>,
|
|
714
714
|
) => void;
|
|
715
715
|
type LabeledStatementModifySignature = (
|
|
716
716
|
node: ?LabeledStatement,
|
|
717
|
-
newProps:
|
|
717
|
+
newProps: Partial<LabeledStatementProps>,
|
|
718
718
|
) => void;
|
|
719
719
|
type LogicalExpressionModifySignature = (
|
|
720
720
|
node: ?LogicalExpression,
|
|
721
|
-
newProps:
|
|
721
|
+
newProps: Partial<LogicalExpressionProps>,
|
|
722
722
|
) => void;
|
|
723
723
|
type MemberExpressionModifySignature = (
|
|
724
724
|
node: ?MemberExpression,
|
|
725
|
-
newProps:
|
|
725
|
+
newProps: Partial<MemberExpressionProps>,
|
|
726
726
|
) => void;
|
|
727
727
|
type MetaPropertyModifySignature = (
|
|
728
728
|
node: ?MetaProperty,
|
|
729
|
-
newProps:
|
|
729
|
+
newProps: Partial<MetaPropertyProps>,
|
|
730
730
|
) => void;
|
|
731
731
|
type MethodDefinitionModifySignature = (
|
|
732
732
|
node: ?MethodDefinition,
|
|
733
|
-
newProps:
|
|
733
|
+
newProps: Partial<MethodDefinitionProps>,
|
|
734
734
|
) => void;
|
|
735
735
|
type MixedTypeAnnotationModifySignature = (
|
|
736
736
|
node: ?MixedTypeAnnotation,
|
|
737
|
-
newProps:
|
|
737
|
+
newProps: Partial<MixedTypeAnnotationProps>,
|
|
738
738
|
) => void;
|
|
739
739
|
type NewExpressionModifySignature = (
|
|
740
740
|
node: ?NewExpression,
|
|
741
|
-
newProps:
|
|
741
|
+
newProps: Partial<NewExpressionProps>,
|
|
742
742
|
) => void;
|
|
743
743
|
type NullableTypeAnnotationModifySignature = (
|
|
744
744
|
node: ?NullableTypeAnnotation,
|
|
745
|
-
newProps:
|
|
745
|
+
newProps: Partial<NullableTypeAnnotationProps>,
|
|
746
746
|
) => void;
|
|
747
747
|
type NullLiteralModifySignature = (
|
|
748
748
|
node: ?NullLiteral,
|
|
749
|
-
newProps:
|
|
749
|
+
newProps: Partial<NullLiteralProps>,
|
|
750
750
|
) => void;
|
|
751
751
|
type NullLiteralTypeAnnotationModifySignature = (
|
|
752
752
|
node: ?NullLiteralTypeAnnotation,
|
|
753
|
-
newProps:
|
|
753
|
+
newProps: Partial<NullLiteralTypeAnnotationProps>,
|
|
754
754
|
) => void;
|
|
755
755
|
type NumberLiteralTypeAnnotationModifySignature = (
|
|
756
756
|
node: ?NumberLiteralTypeAnnotation,
|
|
757
|
-
newProps:
|
|
757
|
+
newProps: Partial<NumberLiteralTypeAnnotationProps>,
|
|
758
758
|
) => void;
|
|
759
759
|
type NumberTypeAnnotationModifySignature = (
|
|
760
760
|
node: ?NumberTypeAnnotation,
|
|
761
|
-
newProps:
|
|
761
|
+
newProps: Partial<NumberTypeAnnotationProps>,
|
|
762
762
|
) => void;
|
|
763
763
|
type NumericLiteralModifySignature = (
|
|
764
764
|
node: ?NumericLiteral,
|
|
765
|
-
newProps:
|
|
765
|
+
newProps: Partial<NumericLiteralProps>,
|
|
766
766
|
) => void;
|
|
767
767
|
type ObjectExpressionModifySignature = (
|
|
768
768
|
node: ?ObjectExpression,
|
|
769
|
-
newProps:
|
|
769
|
+
newProps: Partial<ObjectExpressionProps>,
|
|
770
770
|
) => void;
|
|
771
771
|
type ObjectPatternModifySignature = (
|
|
772
772
|
node: ?ObjectPattern,
|
|
773
|
-
newProps:
|
|
773
|
+
newProps: Partial<ObjectPatternProps>,
|
|
774
774
|
) => void;
|
|
775
775
|
type ObjectTypeAnnotationModifySignature = (
|
|
776
776
|
node: ?ObjectTypeAnnotation,
|
|
777
|
-
newProps:
|
|
777
|
+
newProps: Partial<ObjectTypeAnnotationProps>,
|
|
778
778
|
) => void;
|
|
779
779
|
type ObjectTypeCallPropertyModifySignature = (
|
|
780
780
|
node: ?ObjectTypeCallProperty,
|
|
781
|
-
newProps:
|
|
781
|
+
newProps: Partial<ObjectTypeCallPropertyProps>,
|
|
782
782
|
) => void;
|
|
783
783
|
type ObjectTypeIndexerModifySignature = (
|
|
784
784
|
node: ?ObjectTypeIndexer,
|
|
785
|
-
newProps:
|
|
785
|
+
newProps: Partial<ObjectTypeIndexerProps>,
|
|
786
786
|
) => void;
|
|
787
787
|
type ObjectTypeInternalSlotModifySignature = (
|
|
788
788
|
node: ?ObjectTypeInternalSlot,
|
|
789
|
-
newProps:
|
|
789
|
+
newProps: Partial<ObjectTypeInternalSlotProps>,
|
|
790
790
|
) => void;
|
|
791
791
|
type ObjectTypePropertyModifySignature = (
|
|
792
792
|
node: ?ObjectTypeProperty,
|
|
793
|
-
newProps:
|
|
793
|
+
newProps: Partial<ObjectTypePropertyProps>,
|
|
794
794
|
) => void;
|
|
795
795
|
type ObjectTypeSpreadPropertyModifySignature = (
|
|
796
796
|
node: ?ObjectTypeSpreadProperty,
|
|
797
|
-
newProps:
|
|
797
|
+
newProps: Partial<ObjectTypeSpreadPropertyProps>,
|
|
798
798
|
) => void;
|
|
799
799
|
type OpaqueTypeModifySignature = (
|
|
800
800
|
node: ?OpaqueType,
|
|
801
|
-
newProps:
|
|
801
|
+
newProps: Partial<OpaqueTypeProps>,
|
|
802
802
|
) => void;
|
|
803
803
|
type OptionalIndexedAccessTypeModifySignature = (
|
|
804
804
|
node: ?OptionalIndexedAccessType,
|
|
805
|
-
newProps:
|
|
805
|
+
newProps: Partial<OptionalIndexedAccessTypeProps>,
|
|
806
806
|
) => void;
|
|
807
807
|
type PrivateIdentifierModifySignature = (
|
|
808
808
|
node: ?PrivateIdentifier,
|
|
809
|
-
newProps:
|
|
809
|
+
newProps: Partial<PrivateIdentifierProps>,
|
|
810
810
|
) => void;
|
|
811
811
|
type PropertyModifySignature = (
|
|
812
812
|
node: ?Property,
|
|
813
|
-
newProps:
|
|
813
|
+
newProps: Partial<PropertyProps>,
|
|
814
814
|
) => void;
|
|
815
815
|
type PropertyDefinitionModifySignature = (
|
|
816
816
|
node: ?PropertyDefinition,
|
|
817
|
-
newProps:
|
|
817
|
+
newProps: Partial<PropertyDefinitionProps>,
|
|
818
818
|
) => void;
|
|
819
819
|
type QualifiedTypeIdentifierModifySignature = (
|
|
820
820
|
node: ?QualifiedTypeIdentifier,
|
|
821
|
-
newProps:
|
|
821
|
+
newProps: Partial<QualifiedTypeIdentifierProps>,
|
|
822
822
|
) => void;
|
|
823
823
|
type RegExpLiteralModifySignature = (
|
|
824
824
|
node: ?RegExpLiteral,
|
|
825
|
-
newProps:
|
|
825
|
+
newProps: Partial<RegExpLiteralProps>,
|
|
826
826
|
) => void;
|
|
827
827
|
type RestElementModifySignature = (
|
|
828
828
|
node: ?RestElement,
|
|
829
|
-
newProps:
|
|
829
|
+
newProps: Partial<RestElementProps>,
|
|
830
830
|
) => void;
|
|
831
831
|
type ReturnStatementModifySignature = (
|
|
832
832
|
node: ?ReturnStatement,
|
|
833
|
-
newProps:
|
|
833
|
+
newProps: Partial<ReturnStatementProps>,
|
|
834
834
|
) => void;
|
|
835
835
|
type SequenceExpressionModifySignature = (
|
|
836
836
|
node: ?SequenceExpression,
|
|
837
|
-
newProps:
|
|
837
|
+
newProps: Partial<SequenceExpressionProps>,
|
|
838
838
|
) => void;
|
|
839
839
|
type SpreadElementModifySignature = (
|
|
840
840
|
node: ?SpreadElement,
|
|
841
|
-
newProps:
|
|
841
|
+
newProps: Partial<SpreadElementProps>,
|
|
842
842
|
) => void;
|
|
843
843
|
type StringLiteralModifySignature = (
|
|
844
844
|
node: ?StringLiteral,
|
|
845
|
-
newProps:
|
|
845
|
+
newProps: Partial<StringLiteralProps>,
|
|
846
846
|
) => void;
|
|
847
847
|
type StringLiteralTypeAnnotationModifySignature = (
|
|
848
848
|
node: ?StringLiteralTypeAnnotation,
|
|
849
|
-
newProps:
|
|
849
|
+
newProps: Partial<StringLiteralTypeAnnotationProps>,
|
|
850
850
|
) => void;
|
|
851
851
|
type StringTypeAnnotationModifySignature = (
|
|
852
852
|
node: ?StringTypeAnnotation,
|
|
853
|
-
newProps:
|
|
853
|
+
newProps: Partial<StringTypeAnnotationProps>,
|
|
854
854
|
) => void;
|
|
855
855
|
type SuperModifySignature = (
|
|
856
856
|
node: ?Super,
|
|
857
|
-
newProps:
|
|
857
|
+
newProps: Partial<SuperProps>,
|
|
858
858
|
) => void;
|
|
859
859
|
type SwitchCaseModifySignature = (
|
|
860
860
|
node: ?SwitchCase,
|
|
861
|
-
newProps:
|
|
861
|
+
newProps: Partial<SwitchCaseProps>,
|
|
862
862
|
) => void;
|
|
863
863
|
type SwitchStatementModifySignature = (
|
|
864
864
|
node: ?SwitchStatement,
|
|
865
|
-
newProps:
|
|
865
|
+
newProps: Partial<SwitchStatementProps>,
|
|
866
866
|
) => void;
|
|
867
867
|
type SymbolTypeAnnotationModifySignature = (
|
|
868
868
|
node: ?SymbolTypeAnnotation,
|
|
869
|
-
newProps:
|
|
869
|
+
newProps: Partial<SymbolTypeAnnotationProps>,
|
|
870
870
|
) => void;
|
|
871
871
|
type TaggedTemplateExpressionModifySignature = (
|
|
872
872
|
node: ?TaggedTemplateExpression,
|
|
873
|
-
newProps:
|
|
873
|
+
newProps: Partial<TaggedTemplateExpressionProps>,
|
|
874
874
|
) => void;
|
|
875
875
|
type TemplateElementModifySignature = (
|
|
876
876
|
node: ?TemplateElement,
|
|
877
|
-
newProps:
|
|
877
|
+
newProps: Partial<TemplateElementProps>,
|
|
878
878
|
) => void;
|
|
879
879
|
type TemplateLiteralModifySignature = (
|
|
880
880
|
node: ?TemplateLiteral,
|
|
881
|
-
newProps:
|
|
881
|
+
newProps: Partial<TemplateLiteralProps>,
|
|
882
882
|
) => void;
|
|
883
883
|
type ThisExpressionModifySignature = (
|
|
884
884
|
node: ?ThisExpression,
|
|
885
|
-
newProps:
|
|
885
|
+
newProps: Partial<ThisExpressionProps>,
|
|
886
886
|
) => void;
|
|
887
887
|
type ThisTypeAnnotationModifySignature = (
|
|
888
888
|
node: ?ThisTypeAnnotation,
|
|
889
|
-
newProps:
|
|
889
|
+
newProps: Partial<ThisTypeAnnotationProps>,
|
|
890
890
|
) => void;
|
|
891
891
|
type ThrowStatementModifySignature = (
|
|
892
892
|
node: ?ThrowStatement,
|
|
893
|
-
newProps:
|
|
893
|
+
newProps: Partial<ThrowStatementProps>,
|
|
894
894
|
) => void;
|
|
895
895
|
type TryStatementModifySignature = (
|
|
896
896
|
node: ?TryStatement,
|
|
897
|
-
newProps:
|
|
897
|
+
newProps: Partial<TryStatementProps>,
|
|
898
898
|
) => void;
|
|
899
899
|
type TupleTypeAnnotationModifySignature = (
|
|
900
900
|
node: ?TupleTypeAnnotation,
|
|
901
|
-
newProps:
|
|
901
|
+
newProps: Partial<TupleTypeAnnotationProps>,
|
|
902
902
|
) => void;
|
|
903
903
|
type TypeAliasModifySignature = (
|
|
904
904
|
node: ?TypeAlias,
|
|
905
|
-
newProps:
|
|
905
|
+
newProps: Partial<TypeAliasProps>,
|
|
906
906
|
) => void;
|
|
907
907
|
type TypeAnnotationModifySignature = (
|
|
908
908
|
node: ?TypeAnnotation,
|
|
909
|
-
newProps:
|
|
909
|
+
newProps: Partial<TypeAnnotationProps>,
|
|
910
910
|
) => void;
|
|
911
911
|
type TypeCastExpressionModifySignature = (
|
|
912
912
|
node: ?TypeCastExpression,
|
|
913
|
-
newProps:
|
|
913
|
+
newProps: Partial<TypeCastExpressionProps>,
|
|
914
914
|
) => void;
|
|
915
915
|
type TypeofTypeAnnotationModifySignature = (
|
|
916
916
|
node: ?TypeofTypeAnnotation,
|
|
917
|
-
newProps:
|
|
917
|
+
newProps: Partial<TypeofTypeAnnotationProps>,
|
|
918
918
|
) => void;
|
|
919
919
|
type TypeParameterModifySignature = (
|
|
920
920
|
node: ?TypeParameter,
|
|
921
|
-
newProps:
|
|
921
|
+
newProps: Partial<TypeParameterProps>,
|
|
922
922
|
) => void;
|
|
923
923
|
type TypeParameterDeclarationModifySignature = (
|
|
924
924
|
node: ?TypeParameterDeclaration,
|
|
925
|
-
newProps:
|
|
925
|
+
newProps: Partial<TypeParameterDeclarationProps>,
|
|
926
926
|
) => void;
|
|
927
927
|
type TypeParameterInstantiationModifySignature = (
|
|
928
928
|
node: ?TypeParameterInstantiation,
|
|
929
|
-
newProps:
|
|
929
|
+
newProps: Partial<TypeParameterInstantiationProps>,
|
|
930
930
|
) => void;
|
|
931
931
|
type UnaryExpressionModifySignature = (
|
|
932
932
|
node: ?UnaryExpression,
|
|
933
|
-
newProps:
|
|
933
|
+
newProps: Partial<UnaryExpressionProps>,
|
|
934
934
|
) => void;
|
|
935
935
|
type UnionTypeAnnotationModifySignature = (
|
|
936
936
|
node: ?UnionTypeAnnotation,
|
|
937
|
-
newProps:
|
|
937
|
+
newProps: Partial<UnionTypeAnnotationProps>,
|
|
938
938
|
) => void;
|
|
939
939
|
type UpdateExpressionModifySignature = (
|
|
940
940
|
node: ?UpdateExpression,
|
|
941
|
-
newProps:
|
|
941
|
+
newProps: Partial<UpdateExpressionProps>,
|
|
942
942
|
) => void;
|
|
943
943
|
type VariableDeclarationModifySignature = (
|
|
944
944
|
node: ?VariableDeclaration,
|
|
945
|
-
newProps:
|
|
945
|
+
newProps: Partial<VariableDeclarationProps>,
|
|
946
946
|
) => void;
|
|
947
947
|
type VariableDeclaratorModifySignature = (
|
|
948
948
|
node: ?VariableDeclarator,
|
|
949
|
-
newProps:
|
|
949
|
+
newProps: Partial<VariableDeclaratorProps>,
|
|
950
950
|
) => void;
|
|
951
951
|
type VarianceModifySignature = (
|
|
952
952
|
node: ?Variance,
|
|
953
|
-
newProps:
|
|
953
|
+
newProps: Partial<VarianceProps>,
|
|
954
954
|
) => void;
|
|
955
955
|
type VoidTypeAnnotationModifySignature = (
|
|
956
956
|
node: ?VoidTypeAnnotation,
|
|
957
|
-
newProps:
|
|
957
|
+
newProps: Partial<VoidTypeAnnotationProps>,
|
|
958
958
|
) => void;
|
|
959
959
|
type WhileStatementModifySignature = (
|
|
960
960
|
node: ?WhileStatement,
|
|
961
|
-
newProps:
|
|
961
|
+
newProps: Partial<WhileStatementProps>,
|
|
962
962
|
) => void;
|
|
963
963
|
type WithStatementModifySignature = (
|
|
964
964
|
node: ?WithStatement,
|
|
965
|
-
newProps:
|
|
965
|
+
newProps: Partial<WithStatementProps>,
|
|
966
966
|
) => void;
|
|
967
967
|
type YieldExpressionModifySignature = (
|
|
968
968
|
node: ?YieldExpression,
|
|
969
|
-
newProps:
|
|
969
|
+
newProps: Partial<YieldExpressionProps>,
|
|
970
970
|
) => void;
|
|
971
971
|
export type TransformModifySignatures = AnyTypeAnnotationModifySignature &
|
|
972
972
|
ArrayExpressionModifySignature &
|