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
|
|
|
@@ -343,1259 +343,1256 @@ import type {DetachedNode} from '../detachedNode';
|
|
|
343
343
|
|
|
344
344
|
type AnyTypeAnnotationCloneSignature = ((
|
|
345
345
|
node: AnyTypeAnnotation,
|
|
346
|
-
newProps:
|
|
346
|
+
newProps: Partial<AnyTypeAnnotationProps>,
|
|
347
347
|
) => DetachedNode<AnyTypeAnnotation>) &
|
|
348
348
|
((
|
|
349
349
|
node: ?AnyTypeAnnotation,
|
|
350
|
-
newProps:
|
|
350
|
+
newProps: Partial<AnyTypeAnnotationProps>,
|
|
351
351
|
) => DetachedNode<AnyTypeAnnotation> | null);
|
|
352
352
|
type ArrayExpressionCloneSignature = ((
|
|
353
353
|
node: ArrayExpression,
|
|
354
|
-
newProps:
|
|
354
|
+
newProps: Partial<ArrayExpressionProps>,
|
|
355
355
|
) => DetachedNode<ArrayExpression>) &
|
|
356
356
|
((
|
|
357
357
|
node: ?ArrayExpression,
|
|
358
|
-
newProps:
|
|
358
|
+
newProps: Partial<ArrayExpressionProps>,
|
|
359
359
|
) => DetachedNode<ArrayExpression> | null);
|
|
360
360
|
type ArrayPatternCloneSignature = ((
|
|
361
361
|
node: ArrayPattern,
|
|
362
|
-
newProps:
|
|
362
|
+
newProps: Partial<ArrayPatternProps>,
|
|
363
363
|
) => DetachedNode<ArrayPattern>) &
|
|
364
364
|
((
|
|
365
365
|
node: ?ArrayPattern,
|
|
366
|
-
newProps:
|
|
366
|
+
newProps: Partial<ArrayPatternProps>,
|
|
367
367
|
) => DetachedNode<ArrayPattern> | null);
|
|
368
368
|
type ArrayTypeAnnotationCloneSignature = ((
|
|
369
369
|
node: ArrayTypeAnnotation,
|
|
370
|
-
newProps:
|
|
370
|
+
newProps: Partial<ArrayTypeAnnotationProps>,
|
|
371
371
|
) => DetachedNode<ArrayTypeAnnotation>) &
|
|
372
372
|
((
|
|
373
373
|
node: ?ArrayTypeAnnotation,
|
|
374
|
-
newProps:
|
|
374
|
+
newProps: Partial<ArrayTypeAnnotationProps>,
|
|
375
375
|
) => DetachedNode<ArrayTypeAnnotation> | null);
|
|
376
376
|
type ArrowFunctionExpressionCloneSignature = ((
|
|
377
377
|
node: ArrowFunctionExpression,
|
|
378
|
-
newProps:
|
|
378
|
+
newProps: Partial<ArrowFunctionExpressionProps>,
|
|
379
379
|
) => DetachedNode<ArrowFunctionExpression>) &
|
|
380
380
|
((
|
|
381
381
|
node: ?ArrowFunctionExpression,
|
|
382
|
-
newProps:
|
|
382
|
+
newProps: Partial<ArrowFunctionExpressionProps>,
|
|
383
383
|
) => DetachedNode<ArrowFunctionExpression> | null);
|
|
384
384
|
type AssignmentExpressionCloneSignature = ((
|
|
385
385
|
node: AssignmentExpression,
|
|
386
|
-
newProps:
|
|
386
|
+
newProps: Partial<AssignmentExpressionProps>,
|
|
387
387
|
) => DetachedNode<AssignmentExpression>) &
|
|
388
388
|
((
|
|
389
389
|
node: ?AssignmentExpression,
|
|
390
|
-
newProps:
|
|
390
|
+
newProps: Partial<AssignmentExpressionProps>,
|
|
391
391
|
) => DetachedNode<AssignmentExpression> | null);
|
|
392
392
|
type AssignmentPatternCloneSignature = ((
|
|
393
393
|
node: AssignmentPattern,
|
|
394
|
-
newProps:
|
|
394
|
+
newProps: Partial<AssignmentPatternProps>,
|
|
395
395
|
) => DetachedNode<AssignmentPattern>) &
|
|
396
396
|
((
|
|
397
397
|
node: ?AssignmentPattern,
|
|
398
|
-
newProps:
|
|
398
|
+
newProps: Partial<AssignmentPatternProps>,
|
|
399
399
|
) => DetachedNode<AssignmentPattern> | null);
|
|
400
400
|
type AwaitExpressionCloneSignature = ((
|
|
401
401
|
node: AwaitExpression,
|
|
402
|
-
newProps:
|
|
402
|
+
newProps: Partial<AwaitExpressionProps>,
|
|
403
403
|
) => DetachedNode<AwaitExpression>) &
|
|
404
404
|
((
|
|
405
405
|
node: ?AwaitExpression,
|
|
406
|
-
newProps:
|
|
406
|
+
newProps: Partial<AwaitExpressionProps>,
|
|
407
407
|
) => DetachedNode<AwaitExpression> | null);
|
|
408
408
|
type BigIntLiteralCloneSignature = ((
|
|
409
409
|
node: BigIntLiteral,
|
|
410
|
-
newProps:
|
|
410
|
+
newProps: Partial<BigIntLiteralProps>,
|
|
411
411
|
) => DetachedNode<BigIntLiteral>) &
|
|
412
412
|
((
|
|
413
413
|
node: ?BigIntLiteral,
|
|
414
|
-
newProps:
|
|
414
|
+
newProps: Partial<BigIntLiteralProps>,
|
|
415
415
|
) => DetachedNode<BigIntLiteral> | null);
|
|
416
416
|
type BigIntLiteralTypeAnnotationCloneSignature = ((
|
|
417
417
|
node: BigIntLiteralTypeAnnotation,
|
|
418
|
-
newProps:
|
|
418
|
+
newProps: Partial<BigIntLiteralTypeAnnotationProps>,
|
|
419
419
|
) => DetachedNode<BigIntLiteralTypeAnnotation>) &
|
|
420
420
|
((
|
|
421
421
|
node: ?BigIntLiteralTypeAnnotation,
|
|
422
|
-
newProps:
|
|
422
|
+
newProps: Partial<BigIntLiteralTypeAnnotationProps>,
|
|
423
423
|
) => DetachedNode<BigIntLiteralTypeAnnotation> | null);
|
|
424
424
|
type BigIntTypeAnnotationCloneSignature = ((
|
|
425
425
|
node: BigIntTypeAnnotation,
|
|
426
|
-
newProps:
|
|
426
|
+
newProps: Partial<BigIntTypeAnnotationProps>,
|
|
427
427
|
) => DetachedNode<BigIntTypeAnnotation>) &
|
|
428
428
|
((
|
|
429
429
|
node: ?BigIntTypeAnnotation,
|
|
430
|
-
newProps:
|
|
430
|
+
newProps: Partial<BigIntTypeAnnotationProps>,
|
|
431
431
|
) => DetachedNode<BigIntTypeAnnotation> | null);
|
|
432
432
|
type BinaryExpressionCloneSignature = ((
|
|
433
433
|
node: BinaryExpression,
|
|
434
|
-
newProps:
|
|
434
|
+
newProps: Partial<BinaryExpressionProps>,
|
|
435
435
|
) => DetachedNode<BinaryExpression>) &
|
|
436
436
|
((
|
|
437
437
|
node: ?BinaryExpression,
|
|
438
|
-
newProps:
|
|
438
|
+
newProps: Partial<BinaryExpressionProps>,
|
|
439
439
|
) => DetachedNode<BinaryExpression> | null);
|
|
440
440
|
type BlockStatementCloneSignature = ((
|
|
441
441
|
node: BlockStatement,
|
|
442
|
-
newProps:
|
|
442
|
+
newProps: Partial<BlockStatementProps>,
|
|
443
443
|
) => DetachedNode<BlockStatement>) &
|
|
444
444
|
((
|
|
445
445
|
node: ?BlockStatement,
|
|
446
|
-
newProps:
|
|
446
|
+
newProps: Partial<BlockStatementProps>,
|
|
447
447
|
) => DetachedNode<BlockStatement> | null);
|
|
448
448
|
type BooleanLiteralCloneSignature = ((
|
|
449
449
|
node: BooleanLiteral,
|
|
450
|
-
newProps:
|
|
450
|
+
newProps: Partial<BooleanLiteralProps>,
|
|
451
451
|
) => DetachedNode<BooleanLiteral>) &
|
|
452
452
|
((
|
|
453
453
|
node: ?BooleanLiteral,
|
|
454
|
-
newProps:
|
|
454
|
+
newProps: Partial<BooleanLiteralProps>,
|
|
455
455
|
) => DetachedNode<BooleanLiteral> | null);
|
|
456
456
|
type BooleanLiteralTypeAnnotationCloneSignature = ((
|
|
457
457
|
node: BooleanLiteralTypeAnnotation,
|
|
458
|
-
newProps:
|
|
458
|
+
newProps: Partial<BooleanLiteralTypeAnnotationProps>,
|
|
459
459
|
) => DetachedNode<BooleanLiteralTypeAnnotation>) &
|
|
460
460
|
((
|
|
461
461
|
node: ?BooleanLiteralTypeAnnotation,
|
|
462
|
-
newProps:
|
|
462
|
+
newProps: Partial<BooleanLiteralTypeAnnotationProps>,
|
|
463
463
|
) => DetachedNode<BooleanLiteralTypeAnnotation> | null);
|
|
464
464
|
type BooleanTypeAnnotationCloneSignature = ((
|
|
465
465
|
node: BooleanTypeAnnotation,
|
|
466
|
-
newProps:
|
|
466
|
+
newProps: Partial<BooleanTypeAnnotationProps>,
|
|
467
467
|
) => DetachedNode<BooleanTypeAnnotation>) &
|
|
468
468
|
((
|
|
469
469
|
node: ?BooleanTypeAnnotation,
|
|
470
|
-
newProps:
|
|
470
|
+
newProps: Partial<BooleanTypeAnnotationProps>,
|
|
471
471
|
) => DetachedNode<BooleanTypeAnnotation> | null);
|
|
472
472
|
type BreakStatementCloneSignature = ((
|
|
473
473
|
node: BreakStatement,
|
|
474
|
-
newProps:
|
|
474
|
+
newProps: Partial<BreakStatementProps>,
|
|
475
475
|
) => DetachedNode<BreakStatement>) &
|
|
476
476
|
((
|
|
477
477
|
node: ?BreakStatement,
|
|
478
|
-
newProps:
|
|
478
|
+
newProps: Partial<BreakStatementProps>,
|
|
479
479
|
) => DetachedNode<BreakStatement> | null);
|
|
480
480
|
type CallExpressionCloneSignature = ((
|
|
481
481
|
node: CallExpression,
|
|
482
|
-
newProps:
|
|
482
|
+
newProps: Partial<CallExpressionProps>,
|
|
483
483
|
) => DetachedNode<CallExpression>) &
|
|
484
484
|
((
|
|
485
485
|
node: ?CallExpression,
|
|
486
|
-
newProps:
|
|
486
|
+
newProps: Partial<CallExpressionProps>,
|
|
487
487
|
) => DetachedNode<CallExpression> | null);
|
|
488
488
|
type CatchClauseCloneSignature = ((
|
|
489
489
|
node: CatchClause,
|
|
490
|
-
newProps:
|
|
490
|
+
newProps: Partial<CatchClauseProps>,
|
|
491
491
|
) => DetachedNode<CatchClause>) &
|
|
492
492
|
((
|
|
493
493
|
node: ?CatchClause,
|
|
494
|
-
newProps:
|
|
494
|
+
newProps: Partial<CatchClauseProps>,
|
|
495
495
|
) => DetachedNode<CatchClause> | null);
|
|
496
496
|
type ChainExpressionCloneSignature = ((
|
|
497
497
|
node: ChainExpression,
|
|
498
|
-
newProps:
|
|
498
|
+
newProps: Partial<ChainExpressionProps>,
|
|
499
499
|
) => DetachedNode<ChainExpression>) &
|
|
500
500
|
((
|
|
501
501
|
node: ?ChainExpression,
|
|
502
|
-
newProps:
|
|
502
|
+
newProps: Partial<ChainExpressionProps>,
|
|
503
503
|
) => DetachedNode<ChainExpression> | null);
|
|
504
504
|
type ClassBodyCloneSignature = ((
|
|
505
505
|
node: ClassBody,
|
|
506
|
-
newProps:
|
|
506
|
+
newProps: Partial<ClassBodyProps>,
|
|
507
507
|
) => DetachedNode<ClassBody>) &
|
|
508
508
|
((
|
|
509
509
|
node: ?ClassBody,
|
|
510
|
-
newProps:
|
|
510
|
+
newProps: Partial<ClassBodyProps>,
|
|
511
511
|
) => DetachedNode<ClassBody> | null);
|
|
512
512
|
type ClassDeclarationCloneSignature = ((
|
|
513
513
|
node: ClassDeclaration,
|
|
514
|
-
newProps:
|
|
514
|
+
newProps: Partial<ClassDeclarationProps>,
|
|
515
515
|
) => DetachedNode<ClassDeclaration>) &
|
|
516
516
|
((
|
|
517
517
|
node: ?ClassDeclaration,
|
|
518
|
-
newProps:
|
|
518
|
+
newProps: Partial<ClassDeclarationProps>,
|
|
519
519
|
) => DetachedNode<ClassDeclaration> | null);
|
|
520
520
|
type ClassExpressionCloneSignature = ((
|
|
521
521
|
node: ClassExpression,
|
|
522
|
-
newProps:
|
|
522
|
+
newProps: Partial<ClassExpressionProps>,
|
|
523
523
|
) => DetachedNode<ClassExpression>) &
|
|
524
524
|
((
|
|
525
525
|
node: ?ClassExpression,
|
|
526
|
-
newProps:
|
|
526
|
+
newProps: Partial<ClassExpressionProps>,
|
|
527
527
|
) => DetachedNode<ClassExpression> | null);
|
|
528
528
|
type ClassImplementsCloneSignature = ((
|
|
529
529
|
node: ClassImplements,
|
|
530
|
-
newProps:
|
|
530
|
+
newProps: Partial<ClassImplementsProps>,
|
|
531
531
|
) => DetachedNode<ClassImplements>) &
|
|
532
532
|
((
|
|
533
533
|
node: ?ClassImplements,
|
|
534
|
-
newProps:
|
|
534
|
+
newProps: Partial<ClassImplementsProps>,
|
|
535
535
|
) => DetachedNode<ClassImplements> | null);
|
|
536
536
|
type ConditionalExpressionCloneSignature = ((
|
|
537
537
|
node: ConditionalExpression,
|
|
538
|
-
newProps:
|
|
538
|
+
newProps: Partial<ConditionalExpressionProps>,
|
|
539
539
|
) => DetachedNode<ConditionalExpression>) &
|
|
540
540
|
((
|
|
541
541
|
node: ?ConditionalExpression,
|
|
542
|
-
newProps:
|
|
542
|
+
newProps: Partial<ConditionalExpressionProps>,
|
|
543
543
|
) => DetachedNode<ConditionalExpression> | null);
|
|
544
544
|
type ContinueStatementCloneSignature = ((
|
|
545
545
|
node: ContinueStatement,
|
|
546
|
-
newProps:
|
|
546
|
+
newProps: Partial<ContinueStatementProps>,
|
|
547
547
|
) => DetachedNode<ContinueStatement>) &
|
|
548
548
|
((
|
|
549
549
|
node: ?ContinueStatement,
|
|
550
|
-
newProps:
|
|
550
|
+
newProps: Partial<ContinueStatementProps>,
|
|
551
551
|
) => DetachedNode<ContinueStatement> | null);
|
|
552
552
|
type DebuggerStatementCloneSignature = ((
|
|
553
553
|
node: DebuggerStatement,
|
|
554
|
-
newProps:
|
|
554
|
+
newProps: Partial<DebuggerStatementProps>,
|
|
555
555
|
) => DetachedNode<DebuggerStatement>) &
|
|
556
556
|
((
|
|
557
557
|
node: ?DebuggerStatement,
|
|
558
|
-
newProps:
|
|
558
|
+
newProps: Partial<DebuggerStatementProps>,
|
|
559
559
|
) => DetachedNode<DebuggerStatement> | null);
|
|
560
560
|
type DeclareClassCloneSignature = ((
|
|
561
561
|
node: DeclareClass,
|
|
562
|
-
newProps:
|
|
562
|
+
newProps: Partial<DeclareClassProps>,
|
|
563
563
|
) => DetachedNode<DeclareClass>) &
|
|
564
564
|
((
|
|
565
565
|
node: ?DeclareClass,
|
|
566
|
-
newProps:
|
|
566
|
+
newProps: Partial<DeclareClassProps>,
|
|
567
567
|
) => DetachedNode<DeclareClass> | null);
|
|
568
568
|
type DeclaredPredicateCloneSignature = ((
|
|
569
569
|
node: DeclaredPredicate,
|
|
570
|
-
newProps:
|
|
570
|
+
newProps: Partial<DeclaredPredicateProps>,
|
|
571
571
|
) => DetachedNode<DeclaredPredicate>) &
|
|
572
572
|
((
|
|
573
573
|
node: ?DeclaredPredicate,
|
|
574
|
-
newProps:
|
|
574
|
+
newProps: Partial<DeclaredPredicateProps>,
|
|
575
575
|
) => DetachedNode<DeclaredPredicate> | null);
|
|
576
576
|
type DeclareExportAllDeclarationCloneSignature = ((
|
|
577
577
|
node: DeclareExportAllDeclaration,
|
|
578
|
-
newProps:
|
|
578
|
+
newProps: Partial<DeclareExportAllDeclarationProps>,
|
|
579
579
|
) => DetachedNode<DeclareExportAllDeclaration>) &
|
|
580
580
|
((
|
|
581
581
|
node: ?DeclareExportAllDeclaration,
|
|
582
|
-
newProps:
|
|
582
|
+
newProps: Partial<DeclareExportAllDeclarationProps>,
|
|
583
583
|
) => DetachedNode<DeclareExportAllDeclaration> | null);
|
|
584
584
|
type DeclareExportDeclarationCloneSignature = ((
|
|
585
585
|
node: DeclareExportDeclaration,
|
|
586
|
-
newProps:
|
|
586
|
+
newProps: Partial<DeclareExportDeclarationProps>,
|
|
587
587
|
) => DetachedNode<DeclareExportDeclaration>) &
|
|
588
588
|
((
|
|
589
589
|
node: ?DeclareExportDeclaration,
|
|
590
|
-
newProps:
|
|
590
|
+
newProps: Partial<DeclareExportDeclarationProps>,
|
|
591
591
|
) => DetachedNode<DeclareExportDeclaration> | null);
|
|
592
592
|
type DeclareFunctionCloneSignature = ((
|
|
593
593
|
node: DeclareFunction,
|
|
594
|
-
newProps:
|
|
594
|
+
newProps: Partial<DeclareFunctionProps>,
|
|
595
595
|
) => DetachedNode<DeclareFunction>) &
|
|
596
596
|
((
|
|
597
597
|
node: ?DeclareFunction,
|
|
598
|
-
newProps:
|
|
598
|
+
newProps: Partial<DeclareFunctionProps>,
|
|
599
599
|
) => DetachedNode<DeclareFunction> | null);
|
|
600
600
|
type DeclareInterfaceCloneSignature = ((
|
|
601
601
|
node: DeclareInterface,
|
|
602
|
-
newProps:
|
|
602
|
+
newProps: Partial<DeclareInterfaceProps>,
|
|
603
603
|
) => DetachedNode<DeclareInterface>) &
|
|
604
604
|
((
|
|
605
605
|
node: ?DeclareInterface,
|
|
606
|
-
newProps:
|
|
606
|
+
newProps: Partial<DeclareInterfaceProps>,
|
|
607
607
|
) => DetachedNode<DeclareInterface> | null);
|
|
608
608
|
type DeclareModuleCloneSignature = ((
|
|
609
609
|
node: DeclareModule,
|
|
610
|
-
newProps:
|
|
610
|
+
newProps: Partial<DeclareModuleProps>,
|
|
611
611
|
) => DetachedNode<DeclareModule>) &
|
|
612
612
|
((
|
|
613
613
|
node: ?DeclareModule,
|
|
614
|
-
newProps:
|
|
614
|
+
newProps: Partial<DeclareModuleProps>,
|
|
615
615
|
) => DetachedNode<DeclareModule> | null);
|
|
616
616
|
type DeclareModuleExportsCloneSignature = ((
|
|
617
617
|
node: DeclareModuleExports,
|
|
618
|
-
newProps:
|
|
618
|
+
newProps: Partial<DeclareModuleExportsProps>,
|
|
619
619
|
) => DetachedNode<DeclareModuleExports>) &
|
|
620
620
|
((
|
|
621
621
|
node: ?DeclareModuleExports,
|
|
622
|
-
newProps:
|
|
622
|
+
newProps: Partial<DeclareModuleExportsProps>,
|
|
623
623
|
) => DetachedNode<DeclareModuleExports> | null);
|
|
624
624
|
type DeclareOpaqueTypeCloneSignature = ((
|
|
625
625
|
node: DeclareOpaqueType,
|
|
626
|
-
newProps:
|
|
626
|
+
newProps: Partial<DeclareOpaqueTypeProps>,
|
|
627
627
|
) => DetachedNode<DeclareOpaqueType>) &
|
|
628
628
|
((
|
|
629
629
|
node: ?DeclareOpaqueType,
|
|
630
|
-
newProps:
|
|
630
|
+
newProps: Partial<DeclareOpaqueTypeProps>,
|
|
631
631
|
) => DetachedNode<DeclareOpaqueType> | null);
|
|
632
632
|
type DeclareTypeAliasCloneSignature = ((
|
|
633
633
|
node: DeclareTypeAlias,
|
|
634
|
-
newProps:
|
|
634
|
+
newProps: Partial<DeclareTypeAliasProps>,
|
|
635
635
|
) => DetachedNode<DeclareTypeAlias>) &
|
|
636
636
|
((
|
|
637
637
|
node: ?DeclareTypeAlias,
|
|
638
|
-
newProps:
|
|
638
|
+
newProps: Partial<DeclareTypeAliasProps>,
|
|
639
639
|
) => DetachedNode<DeclareTypeAlias> | null);
|
|
640
640
|
type DeclareVariableCloneSignature = ((
|
|
641
641
|
node: DeclareVariable,
|
|
642
|
-
newProps:
|
|
642
|
+
newProps: Partial<DeclareVariableProps>,
|
|
643
643
|
) => DetachedNode<DeclareVariable>) &
|
|
644
644
|
((
|
|
645
645
|
node: ?DeclareVariable,
|
|
646
|
-
newProps:
|
|
646
|
+
newProps: Partial<DeclareVariableProps>,
|
|
647
647
|
) => DetachedNode<DeclareVariable> | null);
|
|
648
648
|
type DoWhileStatementCloneSignature = ((
|
|
649
649
|
node: DoWhileStatement,
|
|
650
|
-
newProps:
|
|
650
|
+
newProps: Partial<DoWhileStatementProps>,
|
|
651
651
|
) => DetachedNode<DoWhileStatement>) &
|
|
652
652
|
((
|
|
653
653
|
node: ?DoWhileStatement,
|
|
654
|
-
newProps:
|
|
654
|
+
newProps: Partial<DoWhileStatementProps>,
|
|
655
655
|
) => DetachedNode<DoWhileStatement> | null);
|
|
656
656
|
type EmptyStatementCloneSignature = ((
|
|
657
657
|
node: EmptyStatement,
|
|
658
|
-
newProps:
|
|
658
|
+
newProps: Partial<EmptyStatementProps>,
|
|
659
659
|
) => DetachedNode<EmptyStatement>) &
|
|
660
660
|
((
|
|
661
661
|
node: ?EmptyStatement,
|
|
662
|
-
newProps:
|
|
662
|
+
newProps: Partial<EmptyStatementProps>,
|
|
663
663
|
) => DetachedNode<EmptyStatement> | null);
|
|
664
664
|
type EmptyTypeAnnotationCloneSignature = ((
|
|
665
665
|
node: EmptyTypeAnnotation,
|
|
666
|
-
newProps:
|
|
666
|
+
newProps: Partial<EmptyTypeAnnotationProps>,
|
|
667
667
|
) => DetachedNode<EmptyTypeAnnotation>) &
|
|
668
668
|
((
|
|
669
669
|
node: ?EmptyTypeAnnotation,
|
|
670
|
-
newProps:
|
|
670
|
+
newProps: Partial<EmptyTypeAnnotationProps>,
|
|
671
671
|
) => DetachedNode<EmptyTypeAnnotation> | null);
|
|
672
672
|
type EnumBooleanBodyCloneSignature = ((
|
|
673
673
|
node: EnumBooleanBody,
|
|
674
|
-
newProps:
|
|
674
|
+
newProps: Partial<EnumBooleanBodyProps>,
|
|
675
675
|
) => DetachedNode<EnumBooleanBody>) &
|
|
676
676
|
((
|
|
677
677
|
node: ?EnumBooleanBody,
|
|
678
|
-
newProps:
|
|
678
|
+
newProps: Partial<EnumBooleanBodyProps>,
|
|
679
679
|
) => DetachedNode<EnumBooleanBody> | null);
|
|
680
680
|
type EnumBooleanMemberCloneSignature = ((
|
|
681
681
|
node: EnumBooleanMember,
|
|
682
|
-
newProps:
|
|
682
|
+
newProps: Partial<EnumBooleanMemberProps>,
|
|
683
683
|
) => DetachedNode<EnumBooleanMember>) &
|
|
684
684
|
((
|
|
685
685
|
node: ?EnumBooleanMember,
|
|
686
|
-
newProps:
|
|
686
|
+
newProps: Partial<EnumBooleanMemberProps>,
|
|
687
687
|
) => DetachedNode<EnumBooleanMember> | null);
|
|
688
688
|
type EnumDeclarationCloneSignature = ((
|
|
689
689
|
node: EnumDeclaration,
|
|
690
|
-
newProps:
|
|
690
|
+
newProps: Partial<EnumDeclarationProps>,
|
|
691
691
|
) => DetachedNode<EnumDeclaration>) &
|
|
692
692
|
((
|
|
693
693
|
node: ?EnumDeclaration,
|
|
694
|
-
newProps:
|
|
694
|
+
newProps: Partial<EnumDeclarationProps>,
|
|
695
695
|
) => DetachedNode<EnumDeclaration> | null);
|
|
696
696
|
type EnumDefaultedMemberCloneSignature = ((
|
|
697
697
|
node: EnumDefaultedMember,
|
|
698
|
-
newProps:
|
|
698
|
+
newProps: Partial<EnumDefaultedMemberProps>,
|
|
699
699
|
) => DetachedNode<EnumDefaultedMember>) &
|
|
700
700
|
((
|
|
701
701
|
node: ?EnumDefaultedMember,
|
|
702
|
-
newProps:
|
|
702
|
+
newProps: Partial<EnumDefaultedMemberProps>,
|
|
703
703
|
) => DetachedNode<EnumDefaultedMember> | null);
|
|
704
704
|
type EnumNumberBodyCloneSignature = ((
|
|
705
705
|
node: EnumNumberBody,
|
|
706
|
-
newProps:
|
|
706
|
+
newProps: Partial<EnumNumberBodyProps>,
|
|
707
707
|
) => DetachedNode<EnumNumberBody>) &
|
|
708
708
|
((
|
|
709
709
|
node: ?EnumNumberBody,
|
|
710
|
-
newProps:
|
|
710
|
+
newProps: Partial<EnumNumberBodyProps>,
|
|
711
711
|
) => DetachedNode<EnumNumberBody> | null);
|
|
712
712
|
type EnumNumberMemberCloneSignature = ((
|
|
713
713
|
node: EnumNumberMember,
|
|
714
|
-
newProps:
|
|
714
|
+
newProps: Partial<EnumNumberMemberProps>,
|
|
715
715
|
) => DetachedNode<EnumNumberMember>) &
|
|
716
716
|
((
|
|
717
717
|
node: ?EnumNumberMember,
|
|
718
|
-
newProps:
|
|
718
|
+
newProps: Partial<EnumNumberMemberProps>,
|
|
719
719
|
) => DetachedNode<EnumNumberMember> | null);
|
|
720
720
|
type EnumStringBodyCloneSignature = ((
|
|
721
721
|
node: EnumStringBody,
|
|
722
|
-
newProps:
|
|
722
|
+
newProps: Partial<EnumStringBodyProps>,
|
|
723
723
|
) => DetachedNode<EnumStringBody>) &
|
|
724
724
|
((
|
|
725
725
|
node: ?EnumStringBody,
|
|
726
|
-
newProps:
|
|
726
|
+
newProps: Partial<EnumStringBodyProps>,
|
|
727
727
|
) => DetachedNode<EnumStringBody> | null);
|
|
728
728
|
type EnumStringMemberCloneSignature = ((
|
|
729
729
|
node: EnumStringMember,
|
|
730
|
-
newProps:
|
|
730
|
+
newProps: Partial<EnumStringMemberProps>,
|
|
731
731
|
) => DetachedNode<EnumStringMember>) &
|
|
732
732
|
((
|
|
733
733
|
node: ?EnumStringMember,
|
|
734
|
-
newProps:
|
|
734
|
+
newProps: Partial<EnumStringMemberProps>,
|
|
735
735
|
) => DetachedNode<EnumStringMember> | null);
|
|
736
736
|
type EnumSymbolBodyCloneSignature = ((
|
|
737
737
|
node: EnumSymbolBody,
|
|
738
|
-
newProps:
|
|
738
|
+
newProps: Partial<EnumSymbolBodyProps>,
|
|
739
739
|
) => DetachedNode<EnumSymbolBody>) &
|
|
740
740
|
((
|
|
741
741
|
node: ?EnumSymbolBody,
|
|
742
|
-
newProps:
|
|
742
|
+
newProps: Partial<EnumSymbolBodyProps>,
|
|
743
743
|
) => DetachedNode<EnumSymbolBody> | null);
|
|
744
744
|
type ExistsTypeAnnotationCloneSignature = ((
|
|
745
745
|
node: ExistsTypeAnnotation,
|
|
746
|
-
newProps:
|
|
746
|
+
newProps: Partial<ExistsTypeAnnotationProps>,
|
|
747
747
|
) => DetachedNode<ExistsTypeAnnotation>) &
|
|
748
748
|
((
|
|
749
749
|
node: ?ExistsTypeAnnotation,
|
|
750
|
-
newProps:
|
|
750
|
+
newProps: Partial<ExistsTypeAnnotationProps>,
|
|
751
751
|
) => DetachedNode<ExistsTypeAnnotation> | null);
|
|
752
752
|
type ExportAllDeclarationCloneSignature = ((
|
|
753
753
|
node: ExportAllDeclaration,
|
|
754
|
-
newProps:
|
|
754
|
+
newProps: Partial<ExportAllDeclarationProps>,
|
|
755
755
|
) => DetachedNode<ExportAllDeclaration>) &
|
|
756
756
|
((
|
|
757
757
|
node: ?ExportAllDeclaration,
|
|
758
|
-
newProps:
|
|
758
|
+
newProps: Partial<ExportAllDeclarationProps>,
|
|
759
759
|
) => DetachedNode<ExportAllDeclaration> | null);
|
|
760
760
|
type ExportDefaultDeclarationCloneSignature = ((
|
|
761
761
|
node: ExportDefaultDeclaration,
|
|
762
|
-
newProps:
|
|
762
|
+
newProps: Partial<ExportDefaultDeclarationProps>,
|
|
763
763
|
) => DetachedNode<ExportDefaultDeclaration>) &
|
|
764
764
|
((
|
|
765
765
|
node: ?ExportDefaultDeclaration,
|
|
766
|
-
newProps:
|
|
766
|
+
newProps: Partial<ExportDefaultDeclarationProps>,
|
|
767
767
|
) => DetachedNode<ExportDefaultDeclaration> | null);
|
|
768
768
|
type ExportNamedDeclarationCloneSignature = ((
|
|
769
769
|
node: ExportNamedDeclaration,
|
|
770
|
-
newProps:
|
|
770
|
+
newProps: Partial<ExportNamedDeclarationProps>,
|
|
771
771
|
) => DetachedNode<ExportNamedDeclaration>) &
|
|
772
772
|
((
|
|
773
773
|
node: ?ExportNamedDeclaration,
|
|
774
|
-
newProps:
|
|
774
|
+
newProps: Partial<ExportNamedDeclarationProps>,
|
|
775
775
|
) => DetachedNode<ExportNamedDeclaration> | null);
|
|
776
776
|
type ExportSpecifierCloneSignature = ((
|
|
777
777
|
node: ExportSpecifier,
|
|
778
|
-
newProps:
|
|
778
|
+
newProps: Partial<ExportSpecifierProps>,
|
|
779
779
|
) => DetachedNode<ExportSpecifier>) &
|
|
780
780
|
((
|
|
781
781
|
node: ?ExportSpecifier,
|
|
782
|
-
newProps:
|
|
782
|
+
newProps: Partial<ExportSpecifierProps>,
|
|
783
783
|
) => DetachedNode<ExportSpecifier> | null);
|
|
784
784
|
type ExpressionStatementCloneSignature = ((
|
|
785
785
|
node: ExpressionStatement,
|
|
786
|
-
newProps:
|
|
786
|
+
newProps: Partial<ExpressionStatementProps>,
|
|
787
787
|
) => DetachedNode<ExpressionStatement>) &
|
|
788
788
|
((
|
|
789
789
|
node: ?ExpressionStatement,
|
|
790
|
-
newProps:
|
|
790
|
+
newProps: Partial<ExpressionStatementProps>,
|
|
791
791
|
) => DetachedNode<ExpressionStatement> | null);
|
|
792
792
|
type ForInStatementCloneSignature = ((
|
|
793
793
|
node: ForInStatement,
|
|
794
|
-
newProps:
|
|
794
|
+
newProps: Partial<ForInStatementProps>,
|
|
795
795
|
) => DetachedNode<ForInStatement>) &
|
|
796
796
|
((
|
|
797
797
|
node: ?ForInStatement,
|
|
798
|
-
newProps:
|
|
798
|
+
newProps: Partial<ForInStatementProps>,
|
|
799
799
|
) => DetachedNode<ForInStatement> | null);
|
|
800
800
|
type ForOfStatementCloneSignature = ((
|
|
801
801
|
node: ForOfStatement,
|
|
802
|
-
newProps:
|
|
802
|
+
newProps: Partial<ForOfStatementProps>,
|
|
803
803
|
) => DetachedNode<ForOfStatement>) &
|
|
804
804
|
((
|
|
805
805
|
node: ?ForOfStatement,
|
|
806
|
-
newProps:
|
|
806
|
+
newProps: Partial<ForOfStatementProps>,
|
|
807
807
|
) => DetachedNode<ForOfStatement> | null);
|
|
808
808
|
type ForStatementCloneSignature = ((
|
|
809
809
|
node: ForStatement,
|
|
810
|
-
newProps:
|
|
810
|
+
newProps: Partial<ForStatementProps>,
|
|
811
811
|
) => DetachedNode<ForStatement>) &
|
|
812
812
|
((
|
|
813
813
|
node: ?ForStatement,
|
|
814
|
-
newProps:
|
|
814
|
+
newProps: Partial<ForStatementProps>,
|
|
815
815
|
) => DetachedNode<ForStatement> | null);
|
|
816
816
|
type FunctionDeclarationCloneSignature = ((
|
|
817
817
|
node: FunctionDeclaration,
|
|
818
|
-
newProps:
|
|
818
|
+
newProps: Partial<FunctionDeclarationProps>,
|
|
819
819
|
) => DetachedNode<FunctionDeclaration>) &
|
|
820
820
|
((
|
|
821
821
|
node: ?FunctionDeclaration,
|
|
822
|
-
newProps:
|
|
822
|
+
newProps: Partial<FunctionDeclarationProps>,
|
|
823
823
|
) => DetachedNode<FunctionDeclaration> | null);
|
|
824
824
|
type FunctionExpressionCloneSignature = ((
|
|
825
825
|
node: FunctionExpression,
|
|
826
|
-
newProps:
|
|
826
|
+
newProps: Partial<FunctionExpressionProps>,
|
|
827
827
|
) => DetachedNode<FunctionExpression>) &
|
|
828
828
|
((
|
|
829
829
|
node: ?FunctionExpression,
|
|
830
|
-
newProps:
|
|
830
|
+
newProps: Partial<FunctionExpressionProps>,
|
|
831
831
|
) => DetachedNode<FunctionExpression> | null);
|
|
832
832
|
type FunctionTypeAnnotationCloneSignature = ((
|
|
833
833
|
node: FunctionTypeAnnotation,
|
|
834
|
-
newProps:
|
|
834
|
+
newProps: Partial<FunctionTypeAnnotationProps>,
|
|
835
835
|
) => DetachedNode<FunctionTypeAnnotation>) &
|
|
836
836
|
((
|
|
837
837
|
node: ?FunctionTypeAnnotation,
|
|
838
|
-
newProps:
|
|
838
|
+
newProps: Partial<FunctionTypeAnnotationProps>,
|
|
839
839
|
) => DetachedNode<FunctionTypeAnnotation> | null);
|
|
840
840
|
type FunctionTypeParamCloneSignature = ((
|
|
841
841
|
node: FunctionTypeParam,
|
|
842
|
-
newProps:
|
|
842
|
+
newProps: Partial<FunctionTypeParamProps>,
|
|
843
843
|
) => DetachedNode<FunctionTypeParam>) &
|
|
844
844
|
((
|
|
845
845
|
node: ?FunctionTypeParam,
|
|
846
|
-
newProps:
|
|
846
|
+
newProps: Partial<FunctionTypeParamProps>,
|
|
847
847
|
) => DetachedNode<FunctionTypeParam> | null);
|
|
848
848
|
type GenericTypeAnnotationCloneSignature = ((
|
|
849
849
|
node: GenericTypeAnnotation,
|
|
850
|
-
newProps:
|
|
850
|
+
newProps: Partial<GenericTypeAnnotationProps>,
|
|
851
851
|
) => DetachedNode<GenericTypeAnnotation>) &
|
|
852
852
|
((
|
|
853
853
|
node: ?GenericTypeAnnotation,
|
|
854
|
-
newProps:
|
|
854
|
+
newProps: Partial<GenericTypeAnnotationProps>,
|
|
855
855
|
) => DetachedNode<GenericTypeAnnotation> | null);
|
|
856
856
|
type IdentifierCloneSignature = ((
|
|
857
857
|
node: Identifier,
|
|
858
|
-
newProps:
|
|
858
|
+
newProps: Partial<IdentifierProps>,
|
|
859
859
|
) => DetachedNode<Identifier>) &
|
|
860
860
|
((
|
|
861
861
|
node: ?Identifier,
|
|
862
|
-
newProps:
|
|
862
|
+
newProps: Partial<IdentifierProps>,
|
|
863
863
|
) => DetachedNode<Identifier> | null);
|
|
864
864
|
type IfStatementCloneSignature = ((
|
|
865
865
|
node: IfStatement,
|
|
866
|
-
newProps:
|
|
866
|
+
newProps: Partial<IfStatementProps>,
|
|
867
867
|
) => DetachedNode<IfStatement>) &
|
|
868
868
|
((
|
|
869
869
|
node: ?IfStatement,
|
|
870
|
-
newProps:
|
|
870
|
+
newProps: Partial<IfStatementProps>,
|
|
871
871
|
) => DetachedNode<IfStatement> | null);
|
|
872
872
|
type ImportAttributeCloneSignature = ((
|
|
873
873
|
node: ImportAttribute,
|
|
874
|
-
newProps:
|
|
874
|
+
newProps: Partial<ImportAttributeProps>,
|
|
875
875
|
) => DetachedNode<ImportAttribute>) &
|
|
876
876
|
((
|
|
877
877
|
node: ?ImportAttribute,
|
|
878
|
-
newProps:
|
|
878
|
+
newProps: Partial<ImportAttributeProps>,
|
|
879
879
|
) => DetachedNode<ImportAttribute> | null);
|
|
880
880
|
type ImportDeclarationCloneSignature = ((
|
|
881
881
|
node: ImportDeclaration,
|
|
882
|
-
newProps:
|
|
882
|
+
newProps: Partial<ImportDeclarationProps>,
|
|
883
883
|
) => DetachedNode<ImportDeclaration>) &
|
|
884
884
|
((
|
|
885
885
|
node: ?ImportDeclaration,
|
|
886
|
-
newProps:
|
|
886
|
+
newProps: Partial<ImportDeclarationProps>,
|
|
887
887
|
) => DetachedNode<ImportDeclaration> | null);
|
|
888
888
|
type ImportDefaultSpecifierCloneSignature = ((
|
|
889
889
|
node: ImportDefaultSpecifier,
|
|
890
|
-
newProps:
|
|
890
|
+
newProps: Partial<ImportDefaultSpecifierProps>,
|
|
891
891
|
) => DetachedNode<ImportDefaultSpecifier>) &
|
|
892
892
|
((
|
|
893
893
|
node: ?ImportDefaultSpecifier,
|
|
894
|
-
newProps:
|
|
894
|
+
newProps: Partial<ImportDefaultSpecifierProps>,
|
|
895
895
|
) => DetachedNode<ImportDefaultSpecifier> | null);
|
|
896
896
|
type ImportExpressionCloneSignature = ((
|
|
897
897
|
node: ImportExpression,
|
|
898
|
-
newProps:
|
|
898
|
+
newProps: Partial<ImportExpressionProps>,
|
|
899
899
|
) => DetachedNode<ImportExpression>) &
|
|
900
900
|
((
|
|
901
901
|
node: ?ImportExpression,
|
|
902
|
-
newProps:
|
|
902
|
+
newProps: Partial<ImportExpressionProps>,
|
|
903
903
|
) => DetachedNode<ImportExpression> | null);
|
|
904
904
|
type ImportNamespaceSpecifierCloneSignature = ((
|
|
905
905
|
node: ImportNamespaceSpecifier,
|
|
906
|
-
newProps:
|
|
906
|
+
newProps: Partial<ImportNamespaceSpecifierProps>,
|
|
907
907
|
) => DetachedNode<ImportNamespaceSpecifier>) &
|
|
908
908
|
((
|
|
909
909
|
node: ?ImportNamespaceSpecifier,
|
|
910
|
-
newProps:
|
|
910
|
+
newProps: Partial<ImportNamespaceSpecifierProps>,
|
|
911
911
|
) => DetachedNode<ImportNamespaceSpecifier> | null);
|
|
912
912
|
type ImportSpecifierCloneSignature = ((
|
|
913
913
|
node: ImportSpecifier,
|
|
914
|
-
newProps:
|
|
914
|
+
newProps: Partial<ImportSpecifierProps>,
|
|
915
915
|
) => DetachedNode<ImportSpecifier>) &
|
|
916
916
|
((
|
|
917
917
|
node: ?ImportSpecifier,
|
|
918
|
-
newProps:
|
|
918
|
+
newProps: Partial<ImportSpecifierProps>,
|
|
919
919
|
) => DetachedNode<ImportSpecifier> | null);
|
|
920
920
|
type IndexedAccessTypeCloneSignature = ((
|
|
921
921
|
node: IndexedAccessType,
|
|
922
|
-
newProps:
|
|
922
|
+
newProps: Partial<IndexedAccessTypeProps>,
|
|
923
923
|
) => DetachedNode<IndexedAccessType>) &
|
|
924
924
|
((
|
|
925
925
|
node: ?IndexedAccessType,
|
|
926
|
-
newProps:
|
|
926
|
+
newProps: Partial<IndexedAccessTypeProps>,
|
|
927
927
|
) => DetachedNode<IndexedAccessType> | null);
|
|
928
928
|
type InferredPredicateCloneSignature = ((
|
|
929
929
|
node: InferredPredicate,
|
|
930
|
-
newProps:
|
|
930
|
+
newProps: Partial<InferredPredicateProps>,
|
|
931
931
|
) => DetachedNode<InferredPredicate>) &
|
|
932
932
|
((
|
|
933
933
|
node: ?InferredPredicate,
|
|
934
|
-
newProps:
|
|
934
|
+
newProps: Partial<InferredPredicateProps>,
|
|
935
935
|
) => DetachedNode<InferredPredicate> | null);
|
|
936
936
|
type InterfaceDeclarationCloneSignature = ((
|
|
937
937
|
node: InterfaceDeclaration,
|
|
938
|
-
newProps:
|
|
938
|
+
newProps: Partial<InterfaceDeclarationProps>,
|
|
939
939
|
) => DetachedNode<InterfaceDeclaration>) &
|
|
940
940
|
((
|
|
941
941
|
node: ?InterfaceDeclaration,
|
|
942
|
-
newProps:
|
|
942
|
+
newProps: Partial<InterfaceDeclarationProps>,
|
|
943
943
|
) => DetachedNode<InterfaceDeclaration> | null);
|
|
944
944
|
type InterfaceExtendsCloneSignature = ((
|
|
945
945
|
node: InterfaceExtends,
|
|
946
|
-
newProps:
|
|
946
|
+
newProps: Partial<InterfaceExtendsProps>,
|
|
947
947
|
) => DetachedNode<InterfaceExtends>) &
|
|
948
948
|
((
|
|
949
949
|
node: ?InterfaceExtends,
|
|
950
|
-
newProps:
|
|
950
|
+
newProps: Partial<InterfaceExtendsProps>,
|
|
951
951
|
) => DetachedNode<InterfaceExtends> | null);
|
|
952
952
|
type InterfaceTypeAnnotationCloneSignature = ((
|
|
953
953
|
node: InterfaceTypeAnnotation,
|
|
954
|
-
newProps:
|
|
954
|
+
newProps: Partial<InterfaceTypeAnnotationProps>,
|
|
955
955
|
) => DetachedNode<InterfaceTypeAnnotation>) &
|
|
956
956
|
((
|
|
957
957
|
node: ?InterfaceTypeAnnotation,
|
|
958
|
-
newProps:
|
|
958
|
+
newProps: Partial<InterfaceTypeAnnotationProps>,
|
|
959
959
|
) => DetachedNode<InterfaceTypeAnnotation> | null);
|
|
960
960
|
type IntersectionTypeAnnotationCloneSignature = ((
|
|
961
961
|
node: IntersectionTypeAnnotation,
|
|
962
|
-
newProps:
|
|
962
|
+
newProps: Partial<IntersectionTypeAnnotationProps>,
|
|
963
963
|
) => DetachedNode<IntersectionTypeAnnotation>) &
|
|
964
964
|
((
|
|
965
965
|
node: ?IntersectionTypeAnnotation,
|
|
966
|
-
newProps:
|
|
966
|
+
newProps: Partial<IntersectionTypeAnnotationProps>,
|
|
967
967
|
) => DetachedNode<IntersectionTypeAnnotation> | null);
|
|
968
968
|
type JSXAttributeCloneSignature = ((
|
|
969
969
|
node: JSXAttribute,
|
|
970
|
-
newProps:
|
|
970
|
+
newProps: Partial<JSXAttributeProps>,
|
|
971
971
|
) => DetachedNode<JSXAttribute>) &
|
|
972
972
|
((
|
|
973
973
|
node: ?JSXAttribute,
|
|
974
|
-
newProps:
|
|
974
|
+
newProps: Partial<JSXAttributeProps>,
|
|
975
975
|
) => DetachedNode<JSXAttribute> | null);
|
|
976
976
|
type JSXClosingElementCloneSignature = ((
|
|
977
977
|
node: JSXClosingElement,
|
|
978
|
-
newProps:
|
|
978
|
+
newProps: Partial<JSXClosingElementProps>,
|
|
979
979
|
) => DetachedNode<JSXClosingElement>) &
|
|
980
980
|
((
|
|
981
981
|
node: ?JSXClosingElement,
|
|
982
|
-
newProps:
|
|
982
|
+
newProps: Partial<JSXClosingElementProps>,
|
|
983
983
|
) => DetachedNode<JSXClosingElement> | null);
|
|
984
984
|
type JSXClosingFragmentCloneSignature = ((
|
|
985
985
|
node: JSXClosingFragment,
|
|
986
|
-
newProps:
|
|
986
|
+
newProps: Partial<JSXClosingFragmentProps>,
|
|
987
987
|
) => DetachedNode<JSXClosingFragment>) &
|
|
988
988
|
((
|
|
989
989
|
node: ?JSXClosingFragment,
|
|
990
|
-
newProps:
|
|
990
|
+
newProps: Partial<JSXClosingFragmentProps>,
|
|
991
991
|
) => DetachedNode<JSXClosingFragment> | null);
|
|
992
992
|
type JSXElementCloneSignature = ((
|
|
993
993
|
node: JSXElement,
|
|
994
|
-
newProps:
|
|
994
|
+
newProps: Partial<JSXElementProps>,
|
|
995
995
|
) => DetachedNode<JSXElement>) &
|
|
996
996
|
((
|
|
997
997
|
node: ?JSXElement,
|
|
998
|
-
newProps:
|
|
998
|
+
newProps: Partial<JSXElementProps>,
|
|
999
999
|
) => DetachedNode<JSXElement> | null);
|
|
1000
1000
|
type JSXEmptyExpressionCloneSignature = ((
|
|
1001
1001
|
node: JSXEmptyExpression,
|
|
1002
|
-
newProps:
|
|
1002
|
+
newProps: Partial<JSXEmptyExpressionProps>,
|
|
1003
1003
|
) => DetachedNode<JSXEmptyExpression>) &
|
|
1004
1004
|
((
|
|
1005
1005
|
node: ?JSXEmptyExpression,
|
|
1006
|
-
newProps:
|
|
1006
|
+
newProps: Partial<JSXEmptyExpressionProps>,
|
|
1007
1007
|
) => DetachedNode<JSXEmptyExpression> | null);
|
|
1008
1008
|
type JSXExpressionContainerCloneSignature = ((
|
|
1009
1009
|
node: JSXExpressionContainer,
|
|
1010
|
-
newProps:
|
|
1010
|
+
newProps: Partial<JSXExpressionContainerProps>,
|
|
1011
1011
|
) => DetachedNode<JSXExpressionContainer>) &
|
|
1012
1012
|
((
|
|
1013
1013
|
node: ?JSXExpressionContainer,
|
|
1014
|
-
newProps:
|
|
1014
|
+
newProps: Partial<JSXExpressionContainerProps>,
|
|
1015
1015
|
) => DetachedNode<JSXExpressionContainer> | null);
|
|
1016
1016
|
type JSXFragmentCloneSignature = ((
|
|
1017
1017
|
node: JSXFragment,
|
|
1018
|
-
newProps:
|
|
1018
|
+
newProps: Partial<JSXFragmentProps>,
|
|
1019
1019
|
) => DetachedNode<JSXFragment>) &
|
|
1020
1020
|
((
|
|
1021
1021
|
node: ?JSXFragment,
|
|
1022
|
-
newProps:
|
|
1022
|
+
newProps: Partial<JSXFragmentProps>,
|
|
1023
1023
|
) => DetachedNode<JSXFragment> | null);
|
|
1024
1024
|
type JSXIdentifierCloneSignature = ((
|
|
1025
1025
|
node: JSXIdentifier,
|
|
1026
|
-
newProps:
|
|
1026
|
+
newProps: Partial<JSXIdentifierProps>,
|
|
1027
1027
|
) => DetachedNode<JSXIdentifier>) &
|
|
1028
1028
|
((
|
|
1029
1029
|
node: ?JSXIdentifier,
|
|
1030
|
-
newProps:
|
|
1030
|
+
newProps: Partial<JSXIdentifierProps>,
|
|
1031
1031
|
) => DetachedNode<JSXIdentifier> | null);
|
|
1032
1032
|
type JSXMemberExpressionCloneSignature = ((
|
|
1033
1033
|
node: JSXMemberExpression,
|
|
1034
|
-
newProps:
|
|
1034
|
+
newProps: Partial<JSXMemberExpressionProps>,
|
|
1035
1035
|
) => DetachedNode<JSXMemberExpression>) &
|
|
1036
1036
|
((
|
|
1037
1037
|
node: ?JSXMemberExpression,
|
|
1038
|
-
newProps:
|
|
1038
|
+
newProps: Partial<JSXMemberExpressionProps>,
|
|
1039
1039
|
) => DetachedNode<JSXMemberExpression> | null);
|
|
1040
1040
|
type JSXNamespacedNameCloneSignature = ((
|
|
1041
1041
|
node: JSXNamespacedName,
|
|
1042
|
-
newProps:
|
|
1042
|
+
newProps: Partial<JSXNamespacedNameProps>,
|
|
1043
1043
|
) => DetachedNode<JSXNamespacedName>) &
|
|
1044
1044
|
((
|
|
1045
1045
|
node: ?JSXNamespacedName,
|
|
1046
|
-
newProps:
|
|
1046
|
+
newProps: Partial<JSXNamespacedNameProps>,
|
|
1047
1047
|
) => DetachedNode<JSXNamespacedName> | null);
|
|
1048
1048
|
type JSXOpeningElementCloneSignature = ((
|
|
1049
1049
|
node: JSXOpeningElement,
|
|
1050
|
-
newProps:
|
|
1050
|
+
newProps: Partial<JSXOpeningElementProps>,
|
|
1051
1051
|
) => DetachedNode<JSXOpeningElement>) &
|
|
1052
1052
|
((
|
|
1053
1053
|
node: ?JSXOpeningElement,
|
|
1054
|
-
newProps:
|
|
1054
|
+
newProps: Partial<JSXOpeningElementProps>,
|
|
1055
1055
|
) => DetachedNode<JSXOpeningElement> | null);
|
|
1056
1056
|
type JSXOpeningFragmentCloneSignature = ((
|
|
1057
1057
|
node: JSXOpeningFragment,
|
|
1058
|
-
newProps:
|
|
1058
|
+
newProps: Partial<JSXOpeningFragmentProps>,
|
|
1059
1059
|
) => DetachedNode<JSXOpeningFragment>) &
|
|
1060
1060
|
((
|
|
1061
1061
|
node: ?JSXOpeningFragment,
|
|
1062
|
-
newProps:
|
|
1062
|
+
newProps: Partial<JSXOpeningFragmentProps>,
|
|
1063
1063
|
) => DetachedNode<JSXOpeningFragment> | null);
|
|
1064
1064
|
type JSXSpreadAttributeCloneSignature = ((
|
|
1065
1065
|
node: JSXSpreadAttribute,
|
|
1066
|
-
newProps:
|
|
1066
|
+
newProps: Partial<JSXSpreadAttributeProps>,
|
|
1067
1067
|
) => DetachedNode<JSXSpreadAttribute>) &
|
|
1068
1068
|
((
|
|
1069
1069
|
node: ?JSXSpreadAttribute,
|
|
1070
|
-
newProps:
|
|
1070
|
+
newProps: Partial<JSXSpreadAttributeProps>,
|
|
1071
1071
|
) => DetachedNode<JSXSpreadAttribute> | null);
|
|
1072
1072
|
type JSXSpreadChildCloneSignature = ((
|
|
1073
1073
|
node: JSXSpreadChild,
|
|
1074
|
-
newProps:
|
|
1074
|
+
newProps: Partial<JSXSpreadChildProps>,
|
|
1075
1075
|
) => DetachedNode<JSXSpreadChild>) &
|
|
1076
1076
|
((
|
|
1077
1077
|
node: ?JSXSpreadChild,
|
|
1078
|
-
newProps:
|
|
1078
|
+
newProps: Partial<JSXSpreadChildProps>,
|
|
1079
1079
|
) => DetachedNode<JSXSpreadChild> | null);
|
|
1080
1080
|
type JSXTextCloneSignature = ((
|
|
1081
1081
|
node: JSXText,
|
|
1082
|
-
newProps:
|
|
1082
|
+
newProps: Partial<JSXTextProps>,
|
|
1083
1083
|
) => DetachedNode<JSXText>) &
|
|
1084
1084
|
((
|
|
1085
1085
|
node: ?JSXText,
|
|
1086
|
-
newProps:
|
|
1086
|
+
newProps: Partial<JSXTextProps>,
|
|
1087
1087
|
) => DetachedNode<JSXText> | null);
|
|
1088
1088
|
type LabeledStatementCloneSignature = ((
|
|
1089
1089
|
node: LabeledStatement,
|
|
1090
|
-
newProps:
|
|
1090
|
+
newProps: Partial<LabeledStatementProps>,
|
|
1091
1091
|
) => DetachedNode<LabeledStatement>) &
|
|
1092
1092
|
((
|
|
1093
1093
|
node: ?LabeledStatement,
|
|
1094
|
-
newProps:
|
|
1094
|
+
newProps: Partial<LabeledStatementProps>,
|
|
1095
1095
|
) => DetachedNode<LabeledStatement> | null);
|
|
1096
1096
|
type LogicalExpressionCloneSignature = ((
|
|
1097
1097
|
node: LogicalExpression,
|
|
1098
|
-
newProps:
|
|
1098
|
+
newProps: Partial<LogicalExpressionProps>,
|
|
1099
1099
|
) => DetachedNode<LogicalExpression>) &
|
|
1100
1100
|
((
|
|
1101
1101
|
node: ?LogicalExpression,
|
|
1102
|
-
newProps:
|
|
1102
|
+
newProps: Partial<LogicalExpressionProps>,
|
|
1103
1103
|
) => DetachedNode<LogicalExpression> | null);
|
|
1104
1104
|
type MemberExpressionCloneSignature = ((
|
|
1105
1105
|
node: MemberExpression,
|
|
1106
|
-
newProps:
|
|
1106
|
+
newProps: Partial<MemberExpressionProps>,
|
|
1107
1107
|
) => DetachedNode<MemberExpression>) &
|
|
1108
1108
|
((
|
|
1109
1109
|
node: ?MemberExpression,
|
|
1110
|
-
newProps:
|
|
1110
|
+
newProps: Partial<MemberExpressionProps>,
|
|
1111
1111
|
) => DetachedNode<MemberExpression> | null);
|
|
1112
1112
|
type MetaPropertyCloneSignature = ((
|
|
1113
1113
|
node: MetaProperty,
|
|
1114
|
-
newProps:
|
|
1114
|
+
newProps: Partial<MetaPropertyProps>,
|
|
1115
1115
|
) => DetachedNode<MetaProperty>) &
|
|
1116
1116
|
((
|
|
1117
1117
|
node: ?MetaProperty,
|
|
1118
|
-
newProps:
|
|
1118
|
+
newProps: Partial<MetaPropertyProps>,
|
|
1119
1119
|
) => DetachedNode<MetaProperty> | null);
|
|
1120
1120
|
type MethodDefinitionCloneSignature = ((
|
|
1121
1121
|
node: MethodDefinition,
|
|
1122
|
-
newProps:
|
|
1122
|
+
newProps: Partial<MethodDefinitionProps>,
|
|
1123
1123
|
) => DetachedNode<MethodDefinition>) &
|
|
1124
1124
|
((
|
|
1125
1125
|
node: ?MethodDefinition,
|
|
1126
|
-
newProps:
|
|
1126
|
+
newProps: Partial<MethodDefinitionProps>,
|
|
1127
1127
|
) => DetachedNode<MethodDefinition> | null);
|
|
1128
1128
|
type MixedTypeAnnotationCloneSignature = ((
|
|
1129
1129
|
node: MixedTypeAnnotation,
|
|
1130
|
-
newProps:
|
|
1130
|
+
newProps: Partial<MixedTypeAnnotationProps>,
|
|
1131
1131
|
) => DetachedNode<MixedTypeAnnotation>) &
|
|
1132
1132
|
((
|
|
1133
1133
|
node: ?MixedTypeAnnotation,
|
|
1134
|
-
newProps:
|
|
1134
|
+
newProps: Partial<MixedTypeAnnotationProps>,
|
|
1135
1135
|
) => DetachedNode<MixedTypeAnnotation> | null);
|
|
1136
1136
|
type NewExpressionCloneSignature = ((
|
|
1137
1137
|
node: NewExpression,
|
|
1138
|
-
newProps:
|
|
1138
|
+
newProps: Partial<NewExpressionProps>,
|
|
1139
1139
|
) => DetachedNode<NewExpression>) &
|
|
1140
1140
|
((
|
|
1141
1141
|
node: ?NewExpression,
|
|
1142
|
-
newProps:
|
|
1142
|
+
newProps: Partial<NewExpressionProps>,
|
|
1143
1143
|
) => DetachedNode<NewExpression> | null);
|
|
1144
1144
|
type NullableTypeAnnotationCloneSignature = ((
|
|
1145
1145
|
node: NullableTypeAnnotation,
|
|
1146
|
-
newProps:
|
|
1146
|
+
newProps: Partial<NullableTypeAnnotationProps>,
|
|
1147
1147
|
) => DetachedNode<NullableTypeAnnotation>) &
|
|
1148
1148
|
((
|
|
1149
1149
|
node: ?NullableTypeAnnotation,
|
|
1150
|
-
newProps:
|
|
1150
|
+
newProps: Partial<NullableTypeAnnotationProps>,
|
|
1151
1151
|
) => DetachedNode<NullableTypeAnnotation> | null);
|
|
1152
1152
|
type NullLiteralCloneSignature = ((
|
|
1153
1153
|
node: NullLiteral,
|
|
1154
|
-
newProps:
|
|
1154
|
+
newProps: Partial<NullLiteralProps>,
|
|
1155
1155
|
) => DetachedNode<NullLiteral>) &
|
|
1156
1156
|
((
|
|
1157
1157
|
node: ?NullLiteral,
|
|
1158
|
-
newProps:
|
|
1158
|
+
newProps: Partial<NullLiteralProps>,
|
|
1159
1159
|
) => DetachedNode<NullLiteral> | null);
|
|
1160
1160
|
type NullLiteralTypeAnnotationCloneSignature = ((
|
|
1161
1161
|
node: NullLiteralTypeAnnotation,
|
|
1162
|
-
newProps:
|
|
1162
|
+
newProps: Partial<NullLiteralTypeAnnotationProps>,
|
|
1163
1163
|
) => DetachedNode<NullLiteralTypeAnnotation>) &
|
|
1164
1164
|
((
|
|
1165
1165
|
node: ?NullLiteralTypeAnnotation,
|
|
1166
|
-
newProps:
|
|
1166
|
+
newProps: Partial<NullLiteralTypeAnnotationProps>,
|
|
1167
1167
|
) => DetachedNode<NullLiteralTypeAnnotation> | null);
|
|
1168
1168
|
type NumberLiteralTypeAnnotationCloneSignature = ((
|
|
1169
1169
|
node: NumberLiteralTypeAnnotation,
|
|
1170
|
-
newProps:
|
|
1170
|
+
newProps: Partial<NumberLiteralTypeAnnotationProps>,
|
|
1171
1171
|
) => DetachedNode<NumberLiteralTypeAnnotation>) &
|
|
1172
1172
|
((
|
|
1173
1173
|
node: ?NumberLiteralTypeAnnotation,
|
|
1174
|
-
newProps:
|
|
1174
|
+
newProps: Partial<NumberLiteralTypeAnnotationProps>,
|
|
1175
1175
|
) => DetachedNode<NumberLiteralTypeAnnotation> | null);
|
|
1176
1176
|
type NumberTypeAnnotationCloneSignature = ((
|
|
1177
1177
|
node: NumberTypeAnnotation,
|
|
1178
|
-
newProps:
|
|
1178
|
+
newProps: Partial<NumberTypeAnnotationProps>,
|
|
1179
1179
|
) => DetachedNode<NumberTypeAnnotation>) &
|
|
1180
1180
|
((
|
|
1181
1181
|
node: ?NumberTypeAnnotation,
|
|
1182
|
-
newProps:
|
|
1182
|
+
newProps: Partial<NumberTypeAnnotationProps>,
|
|
1183
1183
|
) => DetachedNode<NumberTypeAnnotation> | null);
|
|
1184
1184
|
type NumericLiteralCloneSignature = ((
|
|
1185
1185
|
node: NumericLiteral,
|
|
1186
|
-
newProps:
|
|
1186
|
+
newProps: Partial<NumericLiteralProps>,
|
|
1187
1187
|
) => DetachedNode<NumericLiteral>) &
|
|
1188
1188
|
((
|
|
1189
1189
|
node: ?NumericLiteral,
|
|
1190
|
-
newProps:
|
|
1190
|
+
newProps: Partial<NumericLiteralProps>,
|
|
1191
1191
|
) => DetachedNode<NumericLiteral> | null);
|
|
1192
1192
|
type ObjectExpressionCloneSignature = ((
|
|
1193
1193
|
node: ObjectExpression,
|
|
1194
|
-
newProps:
|
|
1194
|
+
newProps: Partial<ObjectExpressionProps>,
|
|
1195
1195
|
) => DetachedNode<ObjectExpression>) &
|
|
1196
1196
|
((
|
|
1197
1197
|
node: ?ObjectExpression,
|
|
1198
|
-
newProps:
|
|
1198
|
+
newProps: Partial<ObjectExpressionProps>,
|
|
1199
1199
|
) => DetachedNode<ObjectExpression> | null);
|
|
1200
1200
|
type ObjectPatternCloneSignature = ((
|
|
1201
1201
|
node: ObjectPattern,
|
|
1202
|
-
newProps:
|
|
1202
|
+
newProps: Partial<ObjectPatternProps>,
|
|
1203
1203
|
) => DetachedNode<ObjectPattern>) &
|
|
1204
1204
|
((
|
|
1205
1205
|
node: ?ObjectPattern,
|
|
1206
|
-
newProps:
|
|
1206
|
+
newProps: Partial<ObjectPatternProps>,
|
|
1207
1207
|
) => DetachedNode<ObjectPattern> | null);
|
|
1208
1208
|
type ObjectTypeAnnotationCloneSignature = ((
|
|
1209
1209
|
node: ObjectTypeAnnotation,
|
|
1210
|
-
newProps:
|
|
1210
|
+
newProps: Partial<ObjectTypeAnnotationProps>,
|
|
1211
1211
|
) => DetachedNode<ObjectTypeAnnotation>) &
|
|
1212
1212
|
((
|
|
1213
1213
|
node: ?ObjectTypeAnnotation,
|
|
1214
|
-
newProps:
|
|
1214
|
+
newProps: Partial<ObjectTypeAnnotationProps>,
|
|
1215
1215
|
) => DetachedNode<ObjectTypeAnnotation> | null);
|
|
1216
1216
|
type ObjectTypeCallPropertyCloneSignature = ((
|
|
1217
1217
|
node: ObjectTypeCallProperty,
|
|
1218
|
-
newProps:
|
|
1218
|
+
newProps: Partial<ObjectTypeCallPropertyProps>,
|
|
1219
1219
|
) => DetachedNode<ObjectTypeCallProperty>) &
|
|
1220
1220
|
((
|
|
1221
1221
|
node: ?ObjectTypeCallProperty,
|
|
1222
|
-
newProps:
|
|
1222
|
+
newProps: Partial<ObjectTypeCallPropertyProps>,
|
|
1223
1223
|
) => DetachedNode<ObjectTypeCallProperty> | null);
|
|
1224
1224
|
type ObjectTypeIndexerCloneSignature = ((
|
|
1225
1225
|
node: ObjectTypeIndexer,
|
|
1226
|
-
newProps:
|
|
1226
|
+
newProps: Partial<ObjectTypeIndexerProps>,
|
|
1227
1227
|
) => DetachedNode<ObjectTypeIndexer>) &
|
|
1228
1228
|
((
|
|
1229
1229
|
node: ?ObjectTypeIndexer,
|
|
1230
|
-
newProps:
|
|
1230
|
+
newProps: Partial<ObjectTypeIndexerProps>,
|
|
1231
1231
|
) => DetachedNode<ObjectTypeIndexer> | null);
|
|
1232
1232
|
type ObjectTypeInternalSlotCloneSignature = ((
|
|
1233
1233
|
node: ObjectTypeInternalSlot,
|
|
1234
|
-
newProps:
|
|
1234
|
+
newProps: Partial<ObjectTypeInternalSlotProps>,
|
|
1235
1235
|
) => DetachedNode<ObjectTypeInternalSlot>) &
|
|
1236
1236
|
((
|
|
1237
1237
|
node: ?ObjectTypeInternalSlot,
|
|
1238
|
-
newProps:
|
|
1238
|
+
newProps: Partial<ObjectTypeInternalSlotProps>,
|
|
1239
1239
|
) => DetachedNode<ObjectTypeInternalSlot> | null);
|
|
1240
1240
|
type ObjectTypePropertyCloneSignature = ((
|
|
1241
1241
|
node: ObjectTypeProperty,
|
|
1242
|
-
newProps:
|
|
1242
|
+
newProps: Partial<ObjectTypePropertyProps>,
|
|
1243
1243
|
) => DetachedNode<ObjectTypeProperty>) &
|
|
1244
1244
|
((
|
|
1245
1245
|
node: ?ObjectTypeProperty,
|
|
1246
|
-
newProps:
|
|
1246
|
+
newProps: Partial<ObjectTypePropertyProps>,
|
|
1247
1247
|
) => DetachedNode<ObjectTypeProperty> | null);
|
|
1248
1248
|
type ObjectTypeSpreadPropertyCloneSignature = ((
|
|
1249
1249
|
node: ObjectTypeSpreadProperty,
|
|
1250
|
-
newProps:
|
|
1250
|
+
newProps: Partial<ObjectTypeSpreadPropertyProps>,
|
|
1251
1251
|
) => DetachedNode<ObjectTypeSpreadProperty>) &
|
|
1252
1252
|
((
|
|
1253
1253
|
node: ?ObjectTypeSpreadProperty,
|
|
1254
|
-
newProps:
|
|
1254
|
+
newProps: Partial<ObjectTypeSpreadPropertyProps>,
|
|
1255
1255
|
) => DetachedNode<ObjectTypeSpreadProperty> | null);
|
|
1256
1256
|
type OpaqueTypeCloneSignature = ((
|
|
1257
1257
|
node: OpaqueType,
|
|
1258
|
-
newProps:
|
|
1258
|
+
newProps: Partial<OpaqueTypeProps>,
|
|
1259
1259
|
) => DetachedNode<OpaqueType>) &
|
|
1260
1260
|
((
|
|
1261
1261
|
node: ?OpaqueType,
|
|
1262
|
-
newProps:
|
|
1262
|
+
newProps: Partial<OpaqueTypeProps>,
|
|
1263
1263
|
) => DetachedNode<OpaqueType> | null);
|
|
1264
1264
|
type OptionalIndexedAccessTypeCloneSignature = ((
|
|
1265
1265
|
node: OptionalIndexedAccessType,
|
|
1266
|
-
newProps:
|
|
1266
|
+
newProps: Partial<OptionalIndexedAccessTypeProps>,
|
|
1267
1267
|
) => DetachedNode<OptionalIndexedAccessType>) &
|
|
1268
1268
|
((
|
|
1269
1269
|
node: ?OptionalIndexedAccessType,
|
|
1270
|
-
newProps:
|
|
1270
|
+
newProps: Partial<OptionalIndexedAccessTypeProps>,
|
|
1271
1271
|
) => DetachedNode<OptionalIndexedAccessType> | null);
|
|
1272
1272
|
type PrivateIdentifierCloneSignature = ((
|
|
1273
1273
|
node: PrivateIdentifier,
|
|
1274
|
-
newProps:
|
|
1274
|
+
newProps: Partial<PrivateIdentifierProps>,
|
|
1275
1275
|
) => DetachedNode<PrivateIdentifier>) &
|
|
1276
1276
|
((
|
|
1277
1277
|
node: ?PrivateIdentifier,
|
|
1278
|
-
newProps:
|
|
1278
|
+
newProps: Partial<PrivateIdentifierProps>,
|
|
1279
1279
|
) => DetachedNode<PrivateIdentifier> | null);
|
|
1280
1280
|
type PropertyCloneSignature = ((
|
|
1281
1281
|
node: Property,
|
|
1282
|
-
newProps:
|
|
1282
|
+
newProps: Partial<PropertyProps>,
|
|
1283
1283
|
) => DetachedNode<Property>) &
|
|
1284
1284
|
((
|
|
1285
1285
|
node: ?Property,
|
|
1286
|
-
newProps:
|
|
1286
|
+
newProps: Partial<PropertyProps>,
|
|
1287
1287
|
) => DetachedNode<Property> | null);
|
|
1288
1288
|
type PropertyDefinitionCloneSignature = ((
|
|
1289
1289
|
node: PropertyDefinition,
|
|
1290
|
-
newProps:
|
|
1290
|
+
newProps: Partial<PropertyDefinitionProps>,
|
|
1291
1291
|
) => DetachedNode<PropertyDefinition>) &
|
|
1292
1292
|
((
|
|
1293
1293
|
node: ?PropertyDefinition,
|
|
1294
|
-
newProps:
|
|
1294
|
+
newProps: Partial<PropertyDefinitionProps>,
|
|
1295
1295
|
) => DetachedNode<PropertyDefinition> | null);
|
|
1296
1296
|
type QualifiedTypeIdentifierCloneSignature = ((
|
|
1297
1297
|
node: QualifiedTypeIdentifier,
|
|
1298
|
-
newProps:
|
|
1298
|
+
newProps: Partial<QualifiedTypeIdentifierProps>,
|
|
1299
1299
|
) => DetachedNode<QualifiedTypeIdentifier>) &
|
|
1300
1300
|
((
|
|
1301
1301
|
node: ?QualifiedTypeIdentifier,
|
|
1302
|
-
newProps:
|
|
1302
|
+
newProps: Partial<QualifiedTypeIdentifierProps>,
|
|
1303
1303
|
) => DetachedNode<QualifiedTypeIdentifier> | null);
|
|
1304
1304
|
type RegExpLiteralCloneSignature = ((
|
|
1305
1305
|
node: RegExpLiteral,
|
|
1306
|
-
newProps:
|
|
1306
|
+
newProps: Partial<RegExpLiteralProps>,
|
|
1307
1307
|
) => DetachedNode<RegExpLiteral>) &
|
|
1308
1308
|
((
|
|
1309
1309
|
node: ?RegExpLiteral,
|
|
1310
|
-
newProps:
|
|
1310
|
+
newProps: Partial<RegExpLiteralProps>,
|
|
1311
1311
|
) => DetachedNode<RegExpLiteral> | null);
|
|
1312
1312
|
type RestElementCloneSignature = ((
|
|
1313
1313
|
node: RestElement,
|
|
1314
|
-
newProps:
|
|
1314
|
+
newProps: Partial<RestElementProps>,
|
|
1315
1315
|
) => DetachedNode<RestElement>) &
|
|
1316
1316
|
((
|
|
1317
1317
|
node: ?RestElement,
|
|
1318
|
-
newProps:
|
|
1318
|
+
newProps: Partial<RestElementProps>,
|
|
1319
1319
|
) => DetachedNode<RestElement> | null);
|
|
1320
1320
|
type ReturnStatementCloneSignature = ((
|
|
1321
1321
|
node: ReturnStatement,
|
|
1322
|
-
newProps:
|
|
1322
|
+
newProps: Partial<ReturnStatementProps>,
|
|
1323
1323
|
) => DetachedNode<ReturnStatement>) &
|
|
1324
1324
|
((
|
|
1325
1325
|
node: ?ReturnStatement,
|
|
1326
|
-
newProps:
|
|
1326
|
+
newProps: Partial<ReturnStatementProps>,
|
|
1327
1327
|
) => DetachedNode<ReturnStatement> | null);
|
|
1328
1328
|
type SequenceExpressionCloneSignature = ((
|
|
1329
1329
|
node: SequenceExpression,
|
|
1330
|
-
newProps:
|
|
1330
|
+
newProps: Partial<SequenceExpressionProps>,
|
|
1331
1331
|
) => DetachedNode<SequenceExpression>) &
|
|
1332
1332
|
((
|
|
1333
1333
|
node: ?SequenceExpression,
|
|
1334
|
-
newProps:
|
|
1334
|
+
newProps: Partial<SequenceExpressionProps>,
|
|
1335
1335
|
) => DetachedNode<SequenceExpression> | null);
|
|
1336
1336
|
type SpreadElementCloneSignature = ((
|
|
1337
1337
|
node: SpreadElement,
|
|
1338
|
-
newProps:
|
|
1338
|
+
newProps: Partial<SpreadElementProps>,
|
|
1339
1339
|
) => DetachedNode<SpreadElement>) &
|
|
1340
1340
|
((
|
|
1341
1341
|
node: ?SpreadElement,
|
|
1342
|
-
newProps:
|
|
1342
|
+
newProps: Partial<SpreadElementProps>,
|
|
1343
1343
|
) => DetachedNode<SpreadElement> | null);
|
|
1344
1344
|
type StringLiteralCloneSignature = ((
|
|
1345
1345
|
node: StringLiteral,
|
|
1346
|
-
newProps:
|
|
1346
|
+
newProps: Partial<StringLiteralProps>,
|
|
1347
1347
|
) => DetachedNode<StringLiteral>) &
|
|
1348
1348
|
((
|
|
1349
1349
|
node: ?StringLiteral,
|
|
1350
|
-
newProps:
|
|
1350
|
+
newProps: Partial<StringLiteralProps>,
|
|
1351
1351
|
) => DetachedNode<StringLiteral> | null);
|
|
1352
1352
|
type StringLiteralTypeAnnotationCloneSignature = ((
|
|
1353
1353
|
node: StringLiteralTypeAnnotation,
|
|
1354
|
-
newProps:
|
|
1354
|
+
newProps: Partial<StringLiteralTypeAnnotationProps>,
|
|
1355
1355
|
) => DetachedNode<StringLiteralTypeAnnotation>) &
|
|
1356
1356
|
((
|
|
1357
1357
|
node: ?StringLiteralTypeAnnotation,
|
|
1358
|
-
newProps:
|
|
1358
|
+
newProps: Partial<StringLiteralTypeAnnotationProps>,
|
|
1359
1359
|
) => DetachedNode<StringLiteralTypeAnnotation> | null);
|
|
1360
1360
|
type StringTypeAnnotationCloneSignature = ((
|
|
1361
1361
|
node: StringTypeAnnotation,
|
|
1362
|
-
newProps:
|
|
1362
|
+
newProps: Partial<StringTypeAnnotationProps>,
|
|
1363
1363
|
) => DetachedNode<StringTypeAnnotation>) &
|
|
1364
1364
|
((
|
|
1365
1365
|
node: ?StringTypeAnnotation,
|
|
1366
|
-
newProps:
|
|
1366
|
+
newProps: Partial<StringTypeAnnotationProps>,
|
|
1367
1367
|
) => DetachedNode<StringTypeAnnotation> | null);
|
|
1368
1368
|
type SuperCloneSignature = ((
|
|
1369
1369
|
node: Super,
|
|
1370
|
-
newProps:
|
|
1370
|
+
newProps: Partial<SuperProps>,
|
|
1371
1371
|
) => DetachedNode<Super>) &
|
|
1372
|
-
((
|
|
1373
|
-
node: ?Super,
|
|
1374
|
-
newProps: $Partial<SuperProps>,
|
|
1375
|
-
) => DetachedNode<Super> | null);
|
|
1372
|
+
((node: ?Super, newProps: Partial<SuperProps>) => DetachedNode<Super> | null);
|
|
1376
1373
|
type SwitchCaseCloneSignature = ((
|
|
1377
1374
|
node: SwitchCase,
|
|
1378
|
-
newProps:
|
|
1375
|
+
newProps: Partial<SwitchCaseProps>,
|
|
1379
1376
|
) => DetachedNode<SwitchCase>) &
|
|
1380
1377
|
((
|
|
1381
1378
|
node: ?SwitchCase,
|
|
1382
|
-
newProps:
|
|
1379
|
+
newProps: Partial<SwitchCaseProps>,
|
|
1383
1380
|
) => DetachedNode<SwitchCase> | null);
|
|
1384
1381
|
type SwitchStatementCloneSignature = ((
|
|
1385
1382
|
node: SwitchStatement,
|
|
1386
|
-
newProps:
|
|
1383
|
+
newProps: Partial<SwitchStatementProps>,
|
|
1387
1384
|
) => DetachedNode<SwitchStatement>) &
|
|
1388
1385
|
((
|
|
1389
1386
|
node: ?SwitchStatement,
|
|
1390
|
-
newProps:
|
|
1387
|
+
newProps: Partial<SwitchStatementProps>,
|
|
1391
1388
|
) => DetachedNode<SwitchStatement> | null);
|
|
1392
1389
|
type SymbolTypeAnnotationCloneSignature = ((
|
|
1393
1390
|
node: SymbolTypeAnnotation,
|
|
1394
|
-
newProps:
|
|
1391
|
+
newProps: Partial<SymbolTypeAnnotationProps>,
|
|
1395
1392
|
) => DetachedNode<SymbolTypeAnnotation>) &
|
|
1396
1393
|
((
|
|
1397
1394
|
node: ?SymbolTypeAnnotation,
|
|
1398
|
-
newProps:
|
|
1395
|
+
newProps: Partial<SymbolTypeAnnotationProps>,
|
|
1399
1396
|
) => DetachedNode<SymbolTypeAnnotation> | null);
|
|
1400
1397
|
type TaggedTemplateExpressionCloneSignature = ((
|
|
1401
1398
|
node: TaggedTemplateExpression,
|
|
1402
|
-
newProps:
|
|
1399
|
+
newProps: Partial<TaggedTemplateExpressionProps>,
|
|
1403
1400
|
) => DetachedNode<TaggedTemplateExpression>) &
|
|
1404
1401
|
((
|
|
1405
1402
|
node: ?TaggedTemplateExpression,
|
|
1406
|
-
newProps:
|
|
1403
|
+
newProps: Partial<TaggedTemplateExpressionProps>,
|
|
1407
1404
|
) => DetachedNode<TaggedTemplateExpression> | null);
|
|
1408
1405
|
type TemplateElementCloneSignature = ((
|
|
1409
1406
|
node: TemplateElement,
|
|
1410
|
-
newProps:
|
|
1407
|
+
newProps: Partial<TemplateElementProps>,
|
|
1411
1408
|
) => DetachedNode<TemplateElement>) &
|
|
1412
1409
|
((
|
|
1413
1410
|
node: ?TemplateElement,
|
|
1414
|
-
newProps:
|
|
1411
|
+
newProps: Partial<TemplateElementProps>,
|
|
1415
1412
|
) => DetachedNode<TemplateElement> | null);
|
|
1416
1413
|
type TemplateLiteralCloneSignature = ((
|
|
1417
1414
|
node: TemplateLiteral,
|
|
1418
|
-
newProps:
|
|
1415
|
+
newProps: Partial<TemplateLiteralProps>,
|
|
1419
1416
|
) => DetachedNode<TemplateLiteral>) &
|
|
1420
1417
|
((
|
|
1421
1418
|
node: ?TemplateLiteral,
|
|
1422
|
-
newProps:
|
|
1419
|
+
newProps: Partial<TemplateLiteralProps>,
|
|
1423
1420
|
) => DetachedNode<TemplateLiteral> | null);
|
|
1424
1421
|
type ThisExpressionCloneSignature = ((
|
|
1425
1422
|
node: ThisExpression,
|
|
1426
|
-
newProps:
|
|
1423
|
+
newProps: Partial<ThisExpressionProps>,
|
|
1427
1424
|
) => DetachedNode<ThisExpression>) &
|
|
1428
1425
|
((
|
|
1429
1426
|
node: ?ThisExpression,
|
|
1430
|
-
newProps:
|
|
1427
|
+
newProps: Partial<ThisExpressionProps>,
|
|
1431
1428
|
) => DetachedNode<ThisExpression> | null);
|
|
1432
1429
|
type ThisTypeAnnotationCloneSignature = ((
|
|
1433
1430
|
node: ThisTypeAnnotation,
|
|
1434
|
-
newProps:
|
|
1431
|
+
newProps: Partial<ThisTypeAnnotationProps>,
|
|
1435
1432
|
) => DetachedNode<ThisTypeAnnotation>) &
|
|
1436
1433
|
((
|
|
1437
1434
|
node: ?ThisTypeAnnotation,
|
|
1438
|
-
newProps:
|
|
1435
|
+
newProps: Partial<ThisTypeAnnotationProps>,
|
|
1439
1436
|
) => DetachedNode<ThisTypeAnnotation> | null);
|
|
1440
1437
|
type ThrowStatementCloneSignature = ((
|
|
1441
1438
|
node: ThrowStatement,
|
|
1442
|
-
newProps:
|
|
1439
|
+
newProps: Partial<ThrowStatementProps>,
|
|
1443
1440
|
) => DetachedNode<ThrowStatement>) &
|
|
1444
1441
|
((
|
|
1445
1442
|
node: ?ThrowStatement,
|
|
1446
|
-
newProps:
|
|
1443
|
+
newProps: Partial<ThrowStatementProps>,
|
|
1447
1444
|
) => DetachedNode<ThrowStatement> | null);
|
|
1448
1445
|
type TryStatementCloneSignature = ((
|
|
1449
1446
|
node: TryStatement,
|
|
1450
|
-
newProps:
|
|
1447
|
+
newProps: Partial<TryStatementProps>,
|
|
1451
1448
|
) => DetachedNode<TryStatement>) &
|
|
1452
1449
|
((
|
|
1453
1450
|
node: ?TryStatement,
|
|
1454
|
-
newProps:
|
|
1451
|
+
newProps: Partial<TryStatementProps>,
|
|
1455
1452
|
) => DetachedNode<TryStatement> | null);
|
|
1456
1453
|
type TupleTypeAnnotationCloneSignature = ((
|
|
1457
1454
|
node: TupleTypeAnnotation,
|
|
1458
|
-
newProps:
|
|
1455
|
+
newProps: Partial<TupleTypeAnnotationProps>,
|
|
1459
1456
|
) => DetachedNode<TupleTypeAnnotation>) &
|
|
1460
1457
|
((
|
|
1461
1458
|
node: ?TupleTypeAnnotation,
|
|
1462
|
-
newProps:
|
|
1459
|
+
newProps: Partial<TupleTypeAnnotationProps>,
|
|
1463
1460
|
) => DetachedNode<TupleTypeAnnotation> | null);
|
|
1464
1461
|
type TypeAliasCloneSignature = ((
|
|
1465
1462
|
node: TypeAlias,
|
|
1466
|
-
newProps:
|
|
1463
|
+
newProps: Partial<TypeAliasProps>,
|
|
1467
1464
|
) => DetachedNode<TypeAlias>) &
|
|
1468
1465
|
((
|
|
1469
1466
|
node: ?TypeAlias,
|
|
1470
|
-
newProps:
|
|
1467
|
+
newProps: Partial<TypeAliasProps>,
|
|
1471
1468
|
) => DetachedNode<TypeAlias> | null);
|
|
1472
1469
|
type TypeAnnotationCloneSignature = ((
|
|
1473
1470
|
node: TypeAnnotation,
|
|
1474
|
-
newProps:
|
|
1471
|
+
newProps: Partial<TypeAnnotationProps>,
|
|
1475
1472
|
) => DetachedNode<TypeAnnotation>) &
|
|
1476
1473
|
((
|
|
1477
1474
|
node: ?TypeAnnotation,
|
|
1478
|
-
newProps:
|
|
1475
|
+
newProps: Partial<TypeAnnotationProps>,
|
|
1479
1476
|
) => DetachedNode<TypeAnnotation> | null);
|
|
1480
1477
|
type TypeCastExpressionCloneSignature = ((
|
|
1481
1478
|
node: TypeCastExpression,
|
|
1482
|
-
newProps:
|
|
1479
|
+
newProps: Partial<TypeCastExpressionProps>,
|
|
1483
1480
|
) => DetachedNode<TypeCastExpression>) &
|
|
1484
1481
|
((
|
|
1485
1482
|
node: ?TypeCastExpression,
|
|
1486
|
-
newProps:
|
|
1483
|
+
newProps: Partial<TypeCastExpressionProps>,
|
|
1487
1484
|
) => DetachedNode<TypeCastExpression> | null);
|
|
1488
1485
|
type TypeofTypeAnnotationCloneSignature = ((
|
|
1489
1486
|
node: TypeofTypeAnnotation,
|
|
1490
|
-
newProps:
|
|
1487
|
+
newProps: Partial<TypeofTypeAnnotationProps>,
|
|
1491
1488
|
) => DetachedNode<TypeofTypeAnnotation>) &
|
|
1492
1489
|
((
|
|
1493
1490
|
node: ?TypeofTypeAnnotation,
|
|
1494
|
-
newProps:
|
|
1491
|
+
newProps: Partial<TypeofTypeAnnotationProps>,
|
|
1495
1492
|
) => DetachedNode<TypeofTypeAnnotation> | null);
|
|
1496
1493
|
type TypeParameterCloneSignature = ((
|
|
1497
1494
|
node: TypeParameter,
|
|
1498
|
-
newProps:
|
|
1495
|
+
newProps: Partial<TypeParameterProps>,
|
|
1499
1496
|
) => DetachedNode<TypeParameter>) &
|
|
1500
1497
|
((
|
|
1501
1498
|
node: ?TypeParameter,
|
|
1502
|
-
newProps:
|
|
1499
|
+
newProps: Partial<TypeParameterProps>,
|
|
1503
1500
|
) => DetachedNode<TypeParameter> | null);
|
|
1504
1501
|
type TypeParameterDeclarationCloneSignature = ((
|
|
1505
1502
|
node: TypeParameterDeclaration,
|
|
1506
|
-
newProps:
|
|
1503
|
+
newProps: Partial<TypeParameterDeclarationProps>,
|
|
1507
1504
|
) => DetachedNode<TypeParameterDeclaration>) &
|
|
1508
1505
|
((
|
|
1509
1506
|
node: ?TypeParameterDeclaration,
|
|
1510
|
-
newProps:
|
|
1507
|
+
newProps: Partial<TypeParameterDeclarationProps>,
|
|
1511
1508
|
) => DetachedNode<TypeParameterDeclaration> | null);
|
|
1512
1509
|
type TypeParameterInstantiationCloneSignature = ((
|
|
1513
1510
|
node: TypeParameterInstantiation,
|
|
1514
|
-
newProps:
|
|
1511
|
+
newProps: Partial<TypeParameterInstantiationProps>,
|
|
1515
1512
|
) => DetachedNode<TypeParameterInstantiation>) &
|
|
1516
1513
|
((
|
|
1517
1514
|
node: ?TypeParameterInstantiation,
|
|
1518
|
-
newProps:
|
|
1515
|
+
newProps: Partial<TypeParameterInstantiationProps>,
|
|
1519
1516
|
) => DetachedNode<TypeParameterInstantiation> | null);
|
|
1520
1517
|
type UnaryExpressionCloneSignature = ((
|
|
1521
1518
|
node: UnaryExpression,
|
|
1522
|
-
newProps:
|
|
1519
|
+
newProps: Partial<UnaryExpressionProps>,
|
|
1523
1520
|
) => DetachedNode<UnaryExpression>) &
|
|
1524
1521
|
((
|
|
1525
1522
|
node: ?UnaryExpression,
|
|
1526
|
-
newProps:
|
|
1523
|
+
newProps: Partial<UnaryExpressionProps>,
|
|
1527
1524
|
) => DetachedNode<UnaryExpression> | null);
|
|
1528
1525
|
type UnionTypeAnnotationCloneSignature = ((
|
|
1529
1526
|
node: UnionTypeAnnotation,
|
|
1530
|
-
newProps:
|
|
1527
|
+
newProps: Partial<UnionTypeAnnotationProps>,
|
|
1531
1528
|
) => DetachedNode<UnionTypeAnnotation>) &
|
|
1532
1529
|
((
|
|
1533
1530
|
node: ?UnionTypeAnnotation,
|
|
1534
|
-
newProps:
|
|
1531
|
+
newProps: Partial<UnionTypeAnnotationProps>,
|
|
1535
1532
|
) => DetachedNode<UnionTypeAnnotation> | null);
|
|
1536
1533
|
type UpdateExpressionCloneSignature = ((
|
|
1537
1534
|
node: UpdateExpression,
|
|
1538
|
-
newProps:
|
|
1535
|
+
newProps: Partial<UpdateExpressionProps>,
|
|
1539
1536
|
) => DetachedNode<UpdateExpression>) &
|
|
1540
1537
|
((
|
|
1541
1538
|
node: ?UpdateExpression,
|
|
1542
|
-
newProps:
|
|
1539
|
+
newProps: Partial<UpdateExpressionProps>,
|
|
1543
1540
|
) => DetachedNode<UpdateExpression> | null);
|
|
1544
1541
|
type VariableDeclarationCloneSignature = ((
|
|
1545
1542
|
node: VariableDeclaration,
|
|
1546
|
-
newProps:
|
|
1543
|
+
newProps: Partial<VariableDeclarationProps>,
|
|
1547
1544
|
) => DetachedNode<VariableDeclaration>) &
|
|
1548
1545
|
((
|
|
1549
1546
|
node: ?VariableDeclaration,
|
|
1550
|
-
newProps:
|
|
1547
|
+
newProps: Partial<VariableDeclarationProps>,
|
|
1551
1548
|
) => DetachedNode<VariableDeclaration> | null);
|
|
1552
1549
|
type VariableDeclaratorCloneSignature = ((
|
|
1553
1550
|
node: VariableDeclarator,
|
|
1554
|
-
newProps:
|
|
1551
|
+
newProps: Partial<VariableDeclaratorProps>,
|
|
1555
1552
|
) => DetachedNode<VariableDeclarator>) &
|
|
1556
1553
|
((
|
|
1557
1554
|
node: ?VariableDeclarator,
|
|
1558
|
-
newProps:
|
|
1555
|
+
newProps: Partial<VariableDeclaratorProps>,
|
|
1559
1556
|
) => DetachedNode<VariableDeclarator> | null);
|
|
1560
1557
|
type VarianceCloneSignature = ((
|
|
1561
1558
|
node: Variance,
|
|
1562
|
-
newProps:
|
|
1559
|
+
newProps: Partial<VarianceProps>,
|
|
1563
1560
|
) => DetachedNode<Variance>) &
|
|
1564
1561
|
((
|
|
1565
1562
|
node: ?Variance,
|
|
1566
|
-
newProps:
|
|
1563
|
+
newProps: Partial<VarianceProps>,
|
|
1567
1564
|
) => DetachedNode<Variance> | null);
|
|
1568
1565
|
type VoidTypeAnnotationCloneSignature = ((
|
|
1569
1566
|
node: VoidTypeAnnotation,
|
|
1570
|
-
newProps:
|
|
1567
|
+
newProps: Partial<VoidTypeAnnotationProps>,
|
|
1571
1568
|
) => DetachedNode<VoidTypeAnnotation>) &
|
|
1572
1569
|
((
|
|
1573
1570
|
node: ?VoidTypeAnnotation,
|
|
1574
|
-
newProps:
|
|
1571
|
+
newProps: Partial<VoidTypeAnnotationProps>,
|
|
1575
1572
|
) => DetachedNode<VoidTypeAnnotation> | null);
|
|
1576
1573
|
type WhileStatementCloneSignature = ((
|
|
1577
1574
|
node: WhileStatement,
|
|
1578
|
-
newProps:
|
|
1575
|
+
newProps: Partial<WhileStatementProps>,
|
|
1579
1576
|
) => DetachedNode<WhileStatement>) &
|
|
1580
1577
|
((
|
|
1581
1578
|
node: ?WhileStatement,
|
|
1582
|
-
newProps:
|
|
1579
|
+
newProps: Partial<WhileStatementProps>,
|
|
1583
1580
|
) => DetachedNode<WhileStatement> | null);
|
|
1584
1581
|
type WithStatementCloneSignature = ((
|
|
1585
1582
|
node: WithStatement,
|
|
1586
|
-
newProps:
|
|
1583
|
+
newProps: Partial<WithStatementProps>,
|
|
1587
1584
|
) => DetachedNode<WithStatement>) &
|
|
1588
1585
|
((
|
|
1589
1586
|
node: ?WithStatement,
|
|
1590
|
-
newProps:
|
|
1587
|
+
newProps: Partial<WithStatementProps>,
|
|
1591
1588
|
) => DetachedNode<WithStatement> | null);
|
|
1592
1589
|
type YieldExpressionCloneSignature = ((
|
|
1593
1590
|
node: YieldExpression,
|
|
1594
|
-
newProps:
|
|
1591
|
+
newProps: Partial<YieldExpressionProps>,
|
|
1595
1592
|
) => DetachedNode<YieldExpression>) &
|
|
1596
1593
|
((
|
|
1597
1594
|
node: ?YieldExpression,
|
|
1598
|
-
newProps:
|
|
1595
|
+
newProps: Partial<YieldExpressionProps>,
|
|
1599
1596
|
) => DetachedNode<YieldExpression> | null);
|
|
1600
1597
|
export type TransformCloneSignatures = AnyTypeAnnotationCloneSignature &
|
|
1601
1598
|
ArrayExpressionCloneSignature &
|