hermes-transform 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/detachedNode.js +9 -27
- package/dist/detachedNode.js.flow +18 -31
- package/dist/generated/TransformCloneSignatures.js.flow +18 -0
- package/dist/generated/TransformModifySignatures.js.flow +14 -0
- package/dist/generated/TransformReplaceSignatures.js.flow +15 -1
- package/dist/generated/node-types.js +253 -59
- package/dist/generated/node-types.js.flow +257 -102
- package/dist/generated/special-case-node-types/Comment.js +36 -0
- package/dist/generated/special-case-node-types/Comment.js.flow +36 -0
- package/dist/generated/special-case-node-types/DeclareExportDeclaration.js +55 -0
- package/dist/generated/special-case-node-types/DeclareExportDeclaration.js.flow +97 -0
- package/dist/generated/special-case-node-types/ExportNamedDeclaration.js +42 -0
- package/dist/generated/special-case-node-types/ExportNamedDeclaration.js.flow +75 -0
- package/dist/generated/special-case-node-types/Literal.js +97 -0
- package/dist/generated/special-case-node-types/Literal.js.flow +139 -0
- package/dist/generated/special-case-node-types/ObjectTypeProperty.js +73 -0
- package/dist/generated/special-case-node-types/ObjectTypeProperty.js.flow +107 -0
- package/dist/generated/special-case-node-types/Property.js +136 -0
- package/dist/generated/special-case-node-types/Property.js.flow +237 -0
- package/dist/generated/special-case-node-types/misc.js +119 -0
- package/dist/generated/special-case-node-types/misc.js.flow +205 -0
- package/dist/generated/special-case-node-types.js +42 -174
- package/dist/generated/special-case-node-types.js.flow +7 -274
- package/dist/index.js +19 -3
- package/dist/index.js.flow +6 -2
- package/dist/transform/TransformContext.js +1 -1
- package/dist/transform/TransformContext.js.flow +2 -2
- package/dist/transform/comments/comments.js +11 -0
- package/dist/transform/comments/comments.js.flow +16 -1
- package/dist/transform/comments/prettier/main/comments.js +1 -1
- package/dist/transform/comments/prettier/main/comments.js.flow +2 -1
- package/dist/transform/mutations/InsertStatement.js +3 -3
- package/dist/transform/mutations/InsertStatement.js.flow +3 -3
- package/dist/transform/mutations/RemoveComment.js +3 -3
- package/dist/transform/mutations/RemoveComment.js.flow +3 -5
- package/dist/transform/mutations/RemoveNode.js +2 -2
- package/dist/transform/mutations/RemoveNode.js.flow +2 -2
- package/dist/transform/mutations/RemoveStatement.js +2 -2
- package/dist/transform/mutations/RemoveStatement.js.flow +2 -2
- package/dist/transform/mutations/ReplaceNode.js +4 -6
- package/dist/transform/mutations/ReplaceNode.js.flow +2 -3
- package/dist/transform/mutations/ReplaceStatementWithMany.js +2 -2
- package/dist/transform/mutations/ReplaceStatementWithMany.js.flow +2 -2
- package/dist/transform/mutations/utils/getStatementParent.js +3 -2
- package/dist/transform/mutations/utils/getStatementParent.js.flow +5 -2
- package/dist/transform/parse.js +55 -0
- package/dist/transform/parse.js.flow +55 -0
- package/dist/transform/print.js +160 -0
- package/dist/transform/print.js.flow +176 -0
- package/dist/transform/transform.js +6 -67
- package/dist/transform/transform.js.flow +6 -69
- package/dist/transform/{getTransformedAST.js → transformAST.js} +7 -31
- package/dist/transform/{getTransformedAST.js.flow → transformAST.js.flow} +7 -32
- package/dist/traverse/traverse.js +36 -35
- package/dist/traverse/traverse.js.flow +45 -26
- package/package.json +5 -4
- package/dist/getVisitorKeys.js +0 -33
- package/dist/getVisitorKeys.js.flow +0 -31
- package/dist/transform/mutations/utils/arrayUtils.js +0 -43
- package/dist/transform/mutations/utils/arrayUtils.js.flow +0 -50
- package/dist/traverse/SimpleTraverser.js +0 -118
- package/dist/traverse/SimpleTraverser.js.flow +0 -112
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
+
* @generated
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* !!! GENERATED FILE !!!
|
|
14
|
+
*
|
|
15
|
+
* Any manual changes to this file will be overwritten. To regenerate run `yarn build`.
|
|
9
16
|
*/
|
|
10
17
|
// lint directives to let us do some basic validation of generated files
|
|
11
18
|
|
|
@@ -26,6 +33,7 @@ var _exportNames = {
|
|
|
26
33
|
AssignmentPattern: true,
|
|
27
34
|
AwaitExpression: true,
|
|
28
35
|
BigIntLiteralTypeAnnotation: true,
|
|
36
|
+
BigIntTypeAnnotation: true,
|
|
29
37
|
BinaryExpression: true,
|
|
30
38
|
BlockStatement: true,
|
|
31
39
|
BooleanLiteralTypeAnnotation: true,
|
|
@@ -43,8 +51,6 @@ var _exportNames = {
|
|
|
43
51
|
DeclareClass: true,
|
|
44
52
|
DeclaredPredicate: true,
|
|
45
53
|
DeclareExportAllDeclaration: true,
|
|
46
|
-
DeclareExportDeclaration: true,
|
|
47
|
-
DeclareFunction: true,
|
|
48
54
|
DeclareInterface: true,
|
|
49
55
|
DeclareModule: true,
|
|
50
56
|
DeclareModuleExports: true,
|
|
@@ -66,7 +72,6 @@ var _exportNames = {
|
|
|
66
72
|
ExistsTypeAnnotation: true,
|
|
67
73
|
ExportAllDeclaration: true,
|
|
68
74
|
ExportDefaultDeclaration: true,
|
|
69
|
-
ExportNamedDeclaration: true,
|
|
70
75
|
ExportSpecifier: true,
|
|
71
76
|
ExpressionStatement: true,
|
|
72
77
|
ForInStatement: true,
|
|
@@ -122,7 +127,6 @@ var _exportNames = {
|
|
|
122
127
|
ObjectTypeCallProperty: true,
|
|
123
128
|
ObjectTypeIndexer: true,
|
|
124
129
|
ObjectTypeInternalSlot: true,
|
|
125
|
-
ObjectTypeProperty: true,
|
|
126
130
|
ObjectTypeSpreadProperty: true,
|
|
127
131
|
OpaqueType: true,
|
|
128
132
|
OptionalIndexedAccessType: true,
|
|
@@ -173,6 +177,7 @@ exports.AssignmentExpression = AssignmentExpression;
|
|
|
173
177
|
exports.AssignmentPattern = AssignmentPattern;
|
|
174
178
|
exports.AwaitExpression = AwaitExpression;
|
|
175
179
|
exports.BigIntLiteralTypeAnnotation = BigIntLiteralTypeAnnotation;
|
|
180
|
+
exports.BigIntTypeAnnotation = BigIntTypeAnnotation;
|
|
176
181
|
exports.BinaryExpression = BinaryExpression;
|
|
177
182
|
exports.BlockStatement = BlockStatement;
|
|
178
183
|
exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation;
|
|
@@ -189,8 +194,6 @@ exports.ContinueStatement = ContinueStatement;
|
|
|
189
194
|
exports.DebuggerStatement = DebuggerStatement;
|
|
190
195
|
exports.DeclareClass = DeclareClass;
|
|
191
196
|
exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration;
|
|
192
|
-
exports.DeclareExportDeclaration = DeclareExportDeclaration;
|
|
193
|
-
exports.DeclareFunction = DeclareFunction;
|
|
194
197
|
exports.DeclareInterface = DeclareInterface;
|
|
195
198
|
exports.DeclareModule = DeclareModule;
|
|
196
199
|
exports.DeclareModuleExports = DeclareModuleExports;
|
|
@@ -213,7 +216,6 @@ exports.EnumSymbolBody = EnumSymbolBody;
|
|
|
213
216
|
exports.ExistsTypeAnnotation = ExistsTypeAnnotation;
|
|
214
217
|
exports.ExportAllDeclaration = ExportAllDeclaration;
|
|
215
218
|
exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
|
|
216
|
-
exports.ExportNamedDeclaration = ExportNamedDeclaration;
|
|
217
219
|
exports.ExportSpecifier = ExportSpecifier;
|
|
218
220
|
exports.ExpressionStatement = ExpressionStatement;
|
|
219
221
|
exports.ForInStatement = ForInStatement;
|
|
@@ -269,7 +271,6 @@ exports.ObjectTypeAnnotation = ObjectTypeAnnotation;
|
|
|
269
271
|
exports.ObjectTypeCallProperty = ObjectTypeCallProperty;
|
|
270
272
|
exports.ObjectTypeIndexer = ObjectTypeIndexer;
|
|
271
273
|
exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot;
|
|
272
|
-
exports.ObjectTypeProperty = ObjectTypeProperty;
|
|
273
274
|
exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty;
|
|
274
275
|
exports.OpaqueType = OpaqueType;
|
|
275
276
|
exports.OptionalIndexedAccessType = OptionalIndexedAccessType;
|
|
@@ -333,6 +334,7 @@ function AnyTypeAnnotation(props = { ...null
|
|
|
333
334
|
function ArrayExpression(props) {
|
|
334
335
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
335
336
|
type: 'ArrayExpression',
|
|
337
|
+
// $FlowFixMe[incompatible-call],
|
|
336
338
|
elements: props.elements.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
337
339
|
trailingComma: props.trailingComma
|
|
338
340
|
});
|
|
@@ -343,7 +345,9 @@ function ArrayExpression(props) {
|
|
|
343
345
|
function ArrayPattern(props) {
|
|
344
346
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
345
347
|
type: 'ArrayPattern',
|
|
348
|
+
// $FlowFixMe[incompatible-call],
|
|
346
349
|
elements: props.elements.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
350
|
+
// $FlowFixMe[incompatible-call],
|
|
347
351
|
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation)
|
|
348
352
|
});
|
|
349
353
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -353,6 +357,7 @@ function ArrayPattern(props) {
|
|
|
353
357
|
function ArrayTypeAnnotation(props) {
|
|
354
358
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
355
359
|
type: 'ArrayTypeAnnotation',
|
|
360
|
+
// $FlowFixMe[incompatible-call],
|
|
356
361
|
elementType: (0, _detachedNode.asDetachedNode)(props.elementType)
|
|
357
362
|
});
|
|
358
363
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -363,7 +368,9 @@ function AssignmentExpression(props) {
|
|
|
363
368
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
364
369
|
type: 'AssignmentExpression',
|
|
365
370
|
operator: props.operator,
|
|
371
|
+
// $FlowFixMe[incompatible-call],
|
|
366
372
|
left: (0, _detachedNode.asDetachedNode)(props.left),
|
|
373
|
+
// $FlowFixMe[incompatible-call],
|
|
367
374
|
right: (0, _detachedNode.asDetachedNode)(props.right)
|
|
368
375
|
});
|
|
369
376
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -373,7 +380,9 @@ function AssignmentExpression(props) {
|
|
|
373
380
|
function AssignmentPattern(props) {
|
|
374
381
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
375
382
|
type: 'AssignmentPattern',
|
|
383
|
+
// $FlowFixMe[incompatible-call],
|
|
376
384
|
left: (0, _detachedNode.asDetachedNode)(props.left),
|
|
385
|
+
// $FlowFixMe[incompatible-call],
|
|
377
386
|
right: (0, _detachedNode.asDetachedNode)(props.right)
|
|
378
387
|
});
|
|
379
388
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -383,6 +392,7 @@ function AssignmentPattern(props) {
|
|
|
383
392
|
function AwaitExpression(props) {
|
|
384
393
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
385
394
|
type: 'AwaitExpression',
|
|
395
|
+
// $FlowFixMe[incompatible-call],
|
|
386
396
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
387
397
|
});
|
|
388
398
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -398,10 +408,19 @@ function BigIntLiteralTypeAnnotation(props) {
|
|
|
398
408
|
return node;
|
|
399
409
|
}
|
|
400
410
|
|
|
411
|
+
function BigIntTypeAnnotation(props = { ...null
|
|
412
|
+
}) {
|
|
413
|
+
return (0, _detachedNode.detachedProps)(props.parent, {
|
|
414
|
+
type: 'BigIntTypeAnnotation'
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
|
|
401
418
|
function BinaryExpression(props) {
|
|
402
419
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
403
420
|
type: 'BinaryExpression',
|
|
421
|
+
// $FlowFixMe[incompatible-call],
|
|
404
422
|
left: (0, _detachedNode.asDetachedNode)(props.left),
|
|
423
|
+
// $FlowFixMe[incompatible-call],
|
|
405
424
|
right: (0, _detachedNode.asDetachedNode)(props.right),
|
|
406
425
|
operator: props.operator
|
|
407
426
|
});
|
|
@@ -412,6 +431,7 @@ function BinaryExpression(props) {
|
|
|
412
431
|
function BlockStatement(props) {
|
|
413
432
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
414
433
|
type: 'BlockStatement',
|
|
434
|
+
// $FlowFixMe[incompatible-call],
|
|
415
435
|
body: props.body.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
416
436
|
});
|
|
417
437
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -438,6 +458,7 @@ function BooleanTypeAnnotation(props = { ...null
|
|
|
438
458
|
function BreakStatement(props) {
|
|
439
459
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
440
460
|
type: 'BreakStatement',
|
|
461
|
+
// $FlowFixMe[incompatible-call],
|
|
441
462
|
label: (0, _detachedNode.asDetachedNode)(props.label)
|
|
442
463
|
});
|
|
443
464
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -447,8 +468,11 @@ function BreakStatement(props) {
|
|
|
447
468
|
function CallExpression(props) {
|
|
448
469
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
449
470
|
type: 'CallExpression',
|
|
471
|
+
// $FlowFixMe[incompatible-call],
|
|
450
472
|
callee: (0, _detachedNode.asDetachedNode)(props.callee),
|
|
473
|
+
// $FlowFixMe[incompatible-call],
|
|
451
474
|
typeArguments: (0, _detachedNode.asDetachedNode)(props.typeArguments),
|
|
475
|
+
// $FlowFixMe[incompatible-call],
|
|
452
476
|
arguments: props.arguments.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
453
477
|
});
|
|
454
478
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -458,7 +482,9 @@ function CallExpression(props) {
|
|
|
458
482
|
function CatchClause(props) {
|
|
459
483
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
460
484
|
type: 'CatchClause',
|
|
485
|
+
// $FlowFixMe[incompatible-call],
|
|
461
486
|
param: (0, _detachedNode.asDetachedNode)(props.param),
|
|
487
|
+
// $FlowFixMe[incompatible-call],
|
|
462
488
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
463
489
|
});
|
|
464
490
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -468,6 +494,7 @@ function CatchClause(props) {
|
|
|
468
494
|
function ChainExpression(props) {
|
|
469
495
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
470
496
|
type: 'ChainExpression',
|
|
497
|
+
// $FlowFixMe[incompatible-call],
|
|
471
498
|
expression: (0, _detachedNode.asDetachedNode)(props.expression)
|
|
472
499
|
});
|
|
473
500
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -477,6 +504,7 @@ function ChainExpression(props) {
|
|
|
477
504
|
function ClassBody(props) {
|
|
478
505
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
479
506
|
type: 'ClassBody',
|
|
507
|
+
// $FlowFixMe[incompatible-call],
|
|
480
508
|
body: props.body.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
481
509
|
});
|
|
482
510
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -486,12 +514,19 @@ function ClassBody(props) {
|
|
|
486
514
|
function ClassExpression(props) {
|
|
487
515
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
488
516
|
type: 'ClassExpression',
|
|
517
|
+
// $FlowFixMe[incompatible-call],
|
|
489
518
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
519
|
+
// $FlowFixMe[incompatible-call],
|
|
490
520
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
521
|
+
// $FlowFixMe[incompatible-call],
|
|
491
522
|
superClass: (0, _detachedNode.asDetachedNode)(props.superClass),
|
|
523
|
+
// $FlowFixMe[incompatible-call],
|
|
492
524
|
superTypeParameters: (0, _detachedNode.asDetachedNode)(props.superTypeParameters),
|
|
525
|
+
// $FlowFixMe[incompatible-call],
|
|
493
526
|
implements: props.implements.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
527
|
+
// $FlowFixMe[incompatible-call],
|
|
494
528
|
decorators: props.decorators.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
529
|
+
// $FlowFixMe[incompatible-call],
|
|
495
530
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
496
531
|
});
|
|
497
532
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -501,7 +536,9 @@ function ClassExpression(props) {
|
|
|
501
536
|
function ClassImplements(props) {
|
|
502
537
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
503
538
|
type: 'ClassImplements',
|
|
539
|
+
// $FlowFixMe[incompatible-call],
|
|
504
540
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
541
|
+
// $FlowFixMe[incompatible-call],
|
|
505
542
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters)
|
|
506
543
|
});
|
|
507
544
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -511,8 +548,11 @@ function ClassImplements(props) {
|
|
|
511
548
|
function ConditionalExpression(props) {
|
|
512
549
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
513
550
|
type: 'ConditionalExpression',
|
|
551
|
+
// $FlowFixMe[incompatible-call],
|
|
514
552
|
test: (0, _detachedNode.asDetachedNode)(props.test),
|
|
553
|
+
// $FlowFixMe[incompatible-call],
|
|
515
554
|
alternate: (0, _detachedNode.asDetachedNode)(props.alternate),
|
|
555
|
+
// $FlowFixMe[incompatible-call],
|
|
516
556
|
consequent: (0, _detachedNode.asDetachedNode)(props.consequent)
|
|
517
557
|
});
|
|
518
558
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -522,6 +562,7 @@ function ConditionalExpression(props) {
|
|
|
522
562
|
function ContinueStatement(props) {
|
|
523
563
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
524
564
|
type: 'ContinueStatement',
|
|
565
|
+
// $FlowFixMe[incompatible-call],
|
|
525
566
|
label: (0, _detachedNode.asDetachedNode)(props.label)
|
|
526
567
|
});
|
|
527
568
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -538,11 +579,17 @@ function DebuggerStatement(props = { ...null
|
|
|
538
579
|
function DeclareClass(props) {
|
|
539
580
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
540
581
|
type: 'DeclareClass',
|
|
582
|
+
// $FlowFixMe[incompatible-call],
|
|
541
583
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
584
|
+
// $FlowFixMe[incompatible-call],
|
|
542
585
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
586
|
+
// $FlowFixMe[incompatible-call],
|
|
543
587
|
extends: props.extends.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
588
|
+
// $FlowFixMe[incompatible-call],
|
|
544
589
|
implements: props.implements.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
590
|
+
// $FlowFixMe[incompatible-call],
|
|
545
591
|
mixins: props.mixins.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
592
|
+
// $FlowFixMe[incompatible-call],
|
|
546
593
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
547
594
|
});
|
|
548
595
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -552,6 +599,7 @@ function DeclareClass(props) {
|
|
|
552
599
|
function DeclaredPredicate(props) {
|
|
553
600
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
554
601
|
type: 'DeclaredPredicate',
|
|
602
|
+
// $FlowFixMe[incompatible-call],
|
|
555
603
|
value: (0, _detachedNode.asDetachedNode)(props.value)
|
|
556
604
|
});
|
|
557
605
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -561,40 +609,23 @@ function DeclaredPredicate(props) {
|
|
|
561
609
|
function DeclareExportAllDeclaration(props) {
|
|
562
610
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
563
611
|
type: 'DeclareExportAllDeclaration',
|
|
612
|
+
// $FlowFixMe[incompatible-call],
|
|
564
613
|
source: (0, _detachedNode.asDetachedNode)(props.source)
|
|
565
614
|
});
|
|
566
615
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
567
616
|
return node;
|
|
568
617
|
}
|
|
569
618
|
|
|
570
|
-
function DeclareExportDeclaration(props) {
|
|
571
|
-
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
572
|
-
type: 'DeclareExportDeclaration',
|
|
573
|
-
declaration: (0, _detachedNode.asDetachedNode)(props.declaration),
|
|
574
|
-
specifiers: props.specifiers.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
575
|
-
source: (0, _detachedNode.asDetachedNode)(props.source),
|
|
576
|
-
default: props.default
|
|
577
|
-
});
|
|
578
|
-
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
579
|
-
return node;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
function DeclareFunction(props) {
|
|
583
|
-
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
584
|
-
type: 'DeclareFunction',
|
|
585
|
-
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
586
|
-
predicate: (0, _detachedNode.asDetachedNode)(props.predicate)
|
|
587
|
-
});
|
|
588
|
-
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
589
|
-
return node;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
619
|
function DeclareInterface(props) {
|
|
593
620
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
594
621
|
type: 'DeclareInterface',
|
|
622
|
+
// $FlowFixMe[incompatible-call],
|
|
595
623
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
624
|
+
// $FlowFixMe[incompatible-call],
|
|
596
625
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
626
|
+
// $FlowFixMe[incompatible-call],
|
|
597
627
|
extends: props.extends.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
628
|
+
// $FlowFixMe[incompatible-call],
|
|
598
629
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
599
630
|
});
|
|
600
631
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -604,7 +635,9 @@ function DeclareInterface(props) {
|
|
|
604
635
|
function DeclareModule(props) {
|
|
605
636
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
606
637
|
type: 'DeclareModule',
|
|
638
|
+
// $FlowFixMe[incompatible-call],
|
|
607
639
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
640
|
+
// $FlowFixMe[incompatible-call],
|
|
608
641
|
body: (0, _detachedNode.asDetachedNode)(props.body),
|
|
609
642
|
kind: props.kind
|
|
610
643
|
});
|
|
@@ -615,6 +648,7 @@ function DeclareModule(props) {
|
|
|
615
648
|
function DeclareModuleExports(props) {
|
|
616
649
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
617
650
|
type: 'DeclareModuleExports',
|
|
651
|
+
// $FlowFixMe[incompatible-call],
|
|
618
652
|
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation)
|
|
619
653
|
});
|
|
620
654
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -624,9 +658,13 @@ function DeclareModuleExports(props) {
|
|
|
624
658
|
function DeclareOpaqueType(props) {
|
|
625
659
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
626
660
|
type: 'DeclareOpaqueType',
|
|
661
|
+
// $FlowFixMe[incompatible-call],
|
|
627
662
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
663
|
+
// $FlowFixMe[incompatible-call],
|
|
628
664
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
665
|
+
// $FlowFixMe[incompatible-call],
|
|
629
666
|
impltype: (0, _detachedNode.asDetachedNode)(props.impltype),
|
|
667
|
+
// $FlowFixMe[incompatible-call],
|
|
630
668
|
supertype: (0, _detachedNode.asDetachedNode)(props.supertype)
|
|
631
669
|
});
|
|
632
670
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -636,8 +674,11 @@ function DeclareOpaqueType(props) {
|
|
|
636
674
|
function DeclareTypeAlias(props) {
|
|
637
675
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
638
676
|
type: 'DeclareTypeAlias',
|
|
677
|
+
// $FlowFixMe[incompatible-call],
|
|
639
678
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
679
|
+
// $FlowFixMe[incompatible-call],
|
|
640
680
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
681
|
+
// $FlowFixMe[incompatible-call],
|
|
641
682
|
right: (0, _detachedNode.asDetachedNode)(props.right)
|
|
642
683
|
});
|
|
643
684
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -647,6 +688,7 @@ function DeclareTypeAlias(props) {
|
|
|
647
688
|
function DeclareVariable(props) {
|
|
648
689
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
649
690
|
type: 'DeclareVariable',
|
|
691
|
+
// $FlowFixMe[incompatible-call],
|
|
650
692
|
id: (0, _detachedNode.asDetachedNode)(props.id)
|
|
651
693
|
});
|
|
652
694
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -656,7 +698,9 @@ function DeclareVariable(props) {
|
|
|
656
698
|
function DoWhileStatement(props) {
|
|
657
699
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
658
700
|
type: 'DoWhileStatement',
|
|
701
|
+
// $FlowFixMe[incompatible-call],
|
|
659
702
|
body: (0, _detachedNode.asDetachedNode)(props.body),
|
|
703
|
+
// $FlowFixMe[incompatible-call],
|
|
660
704
|
test: (0, _detachedNode.asDetachedNode)(props.test)
|
|
661
705
|
});
|
|
662
706
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -680,6 +724,7 @@ function EmptyTypeAnnotation(props = { ...null
|
|
|
680
724
|
function EnumBooleanBody(props) {
|
|
681
725
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
682
726
|
type: 'EnumBooleanBody',
|
|
727
|
+
// $FlowFixMe[incompatible-call],
|
|
683
728
|
members: props.members.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
684
729
|
explicitType: props.explicitType,
|
|
685
730
|
hasUnknownMembers: props.hasUnknownMembers
|
|
@@ -691,7 +736,9 @@ function EnumBooleanBody(props) {
|
|
|
691
736
|
function EnumBooleanMember(props) {
|
|
692
737
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
693
738
|
type: 'EnumBooleanMember',
|
|
739
|
+
// $FlowFixMe[incompatible-call],
|
|
694
740
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
741
|
+
// $FlowFixMe[incompatible-call],
|
|
695
742
|
init: (0, _detachedNode.asDetachedNode)(props.init)
|
|
696
743
|
});
|
|
697
744
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -701,7 +748,9 @@ function EnumBooleanMember(props) {
|
|
|
701
748
|
function EnumDeclaration(props) {
|
|
702
749
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
703
750
|
type: 'EnumDeclaration',
|
|
751
|
+
// $FlowFixMe[incompatible-call],
|
|
704
752
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
753
|
+
// $FlowFixMe[incompatible-call],
|
|
705
754
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
706
755
|
});
|
|
707
756
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -711,6 +760,7 @@ function EnumDeclaration(props) {
|
|
|
711
760
|
function EnumDefaultedMember(props) {
|
|
712
761
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
713
762
|
type: 'EnumDefaultedMember',
|
|
763
|
+
// $FlowFixMe[incompatible-call],
|
|
714
764
|
id: (0, _detachedNode.asDetachedNode)(props.id)
|
|
715
765
|
});
|
|
716
766
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -720,6 +770,7 @@ function EnumDefaultedMember(props) {
|
|
|
720
770
|
function EnumNumberBody(props) {
|
|
721
771
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
722
772
|
type: 'EnumNumberBody',
|
|
773
|
+
// $FlowFixMe[incompatible-call],
|
|
723
774
|
members: props.members.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
724
775
|
explicitType: props.explicitType,
|
|
725
776
|
hasUnknownMembers: props.hasUnknownMembers
|
|
@@ -731,7 +782,9 @@ function EnumNumberBody(props) {
|
|
|
731
782
|
function EnumNumberMember(props) {
|
|
732
783
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
733
784
|
type: 'EnumNumberMember',
|
|
785
|
+
// $FlowFixMe[incompatible-call],
|
|
734
786
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
787
|
+
// $FlowFixMe[incompatible-call],
|
|
735
788
|
init: (0, _detachedNode.asDetachedNode)(props.init)
|
|
736
789
|
});
|
|
737
790
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -741,6 +794,7 @@ function EnumNumberMember(props) {
|
|
|
741
794
|
function EnumStringBody(props) {
|
|
742
795
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
743
796
|
type: 'EnumStringBody',
|
|
797
|
+
// $FlowFixMe[incompatible-call],
|
|
744
798
|
members: props.members.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
745
799
|
explicitType: props.explicitType,
|
|
746
800
|
hasUnknownMembers: props.hasUnknownMembers
|
|
@@ -752,7 +806,9 @@ function EnumStringBody(props) {
|
|
|
752
806
|
function EnumStringMember(props) {
|
|
753
807
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
754
808
|
type: 'EnumStringMember',
|
|
809
|
+
// $FlowFixMe[incompatible-call],
|
|
755
810
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
811
|
+
// $FlowFixMe[incompatible-call],
|
|
756
812
|
init: (0, _detachedNode.asDetachedNode)(props.init)
|
|
757
813
|
});
|
|
758
814
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -762,6 +818,7 @@ function EnumStringMember(props) {
|
|
|
762
818
|
function EnumSymbolBody(props) {
|
|
763
819
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
764
820
|
type: 'EnumSymbolBody',
|
|
821
|
+
// $FlowFixMe[incompatible-call],
|
|
765
822
|
members: props.members.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
766
823
|
hasUnknownMembers: props.hasUnknownMembers
|
|
767
824
|
});
|
|
@@ -779,7 +836,9 @@ function ExistsTypeAnnotation(props = { ...null
|
|
|
779
836
|
function ExportAllDeclaration(props) {
|
|
780
837
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
781
838
|
type: 'ExportAllDeclaration',
|
|
839
|
+
// $FlowFixMe[incompatible-call],
|
|
782
840
|
exported: (0, _detachedNode.asDetachedNode)(props.exported),
|
|
841
|
+
// $FlowFixMe[incompatible-call],
|
|
783
842
|
source: (0, _detachedNode.asDetachedNode)(props.source),
|
|
784
843
|
exportKind: props.exportKind
|
|
785
844
|
});
|
|
@@ -790,28 +849,19 @@ function ExportAllDeclaration(props) {
|
|
|
790
849
|
function ExportDefaultDeclaration(props) {
|
|
791
850
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
792
851
|
type: 'ExportDefaultDeclaration',
|
|
852
|
+
// $FlowFixMe[incompatible-call],
|
|
793
853
|
declaration: (0, _detachedNode.asDetachedNode)(props.declaration)
|
|
794
854
|
});
|
|
795
855
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
796
856
|
return node;
|
|
797
857
|
}
|
|
798
858
|
|
|
799
|
-
function ExportNamedDeclaration(props) {
|
|
800
|
-
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
801
|
-
type: 'ExportNamedDeclaration',
|
|
802
|
-
declaration: (0, _detachedNode.asDetachedNode)(props.declaration),
|
|
803
|
-
specifiers: props.specifiers.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
804
|
-
source: (0, _detachedNode.asDetachedNode)(props.source),
|
|
805
|
-
exportKind: props.exportKind
|
|
806
|
-
});
|
|
807
|
-
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
808
|
-
return node;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
859
|
function ExportSpecifier(props) {
|
|
812
860
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
813
861
|
type: 'ExportSpecifier',
|
|
862
|
+
// $FlowFixMe[incompatible-call],
|
|
814
863
|
exported: (0, _detachedNode.asDetachedNode)(props.exported),
|
|
864
|
+
// $FlowFixMe[incompatible-call],
|
|
815
865
|
local: (0, _detachedNode.asDetachedNode)(props.local)
|
|
816
866
|
});
|
|
817
867
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -821,6 +871,7 @@ function ExportSpecifier(props) {
|
|
|
821
871
|
function ExpressionStatement(props) {
|
|
822
872
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
823
873
|
type: 'ExpressionStatement',
|
|
874
|
+
// $FlowFixMe[incompatible-call],
|
|
824
875
|
expression: (0, _detachedNode.asDetachedNode)(props.expression),
|
|
825
876
|
directive: props.directive
|
|
826
877
|
});
|
|
@@ -831,8 +882,11 @@ function ExpressionStatement(props) {
|
|
|
831
882
|
function ForInStatement(props) {
|
|
832
883
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
833
884
|
type: 'ForInStatement',
|
|
885
|
+
// $FlowFixMe[incompatible-call],
|
|
834
886
|
left: (0, _detachedNode.asDetachedNode)(props.left),
|
|
887
|
+
// $FlowFixMe[incompatible-call],
|
|
835
888
|
right: (0, _detachedNode.asDetachedNode)(props.right),
|
|
889
|
+
// $FlowFixMe[incompatible-call],
|
|
836
890
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
837
891
|
});
|
|
838
892
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -842,8 +896,11 @@ function ForInStatement(props) {
|
|
|
842
896
|
function ForOfStatement(props) {
|
|
843
897
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
844
898
|
type: 'ForOfStatement',
|
|
899
|
+
// $FlowFixMe[incompatible-call],
|
|
845
900
|
left: (0, _detachedNode.asDetachedNode)(props.left),
|
|
901
|
+
// $FlowFixMe[incompatible-call],
|
|
846
902
|
right: (0, _detachedNode.asDetachedNode)(props.right),
|
|
903
|
+
// $FlowFixMe[incompatible-call],
|
|
847
904
|
body: (0, _detachedNode.asDetachedNode)(props.body),
|
|
848
905
|
await: props.await
|
|
849
906
|
});
|
|
@@ -854,9 +911,13 @@ function ForOfStatement(props) {
|
|
|
854
911
|
function ForStatement(props) {
|
|
855
912
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
856
913
|
type: 'ForStatement',
|
|
914
|
+
// $FlowFixMe[incompatible-call],
|
|
857
915
|
init: (0, _detachedNode.asDetachedNode)(props.init),
|
|
916
|
+
// $FlowFixMe[incompatible-call],
|
|
858
917
|
test: (0, _detachedNode.asDetachedNode)(props.test),
|
|
918
|
+
// $FlowFixMe[incompatible-call],
|
|
859
919
|
update: (0, _detachedNode.asDetachedNode)(props.update),
|
|
920
|
+
// $FlowFixMe[incompatible-call],
|
|
860
921
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
861
922
|
});
|
|
862
923
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -866,11 +927,17 @@ function ForStatement(props) {
|
|
|
866
927
|
function FunctionDeclaration(props) {
|
|
867
928
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
868
929
|
type: 'FunctionDeclaration',
|
|
930
|
+
// $FlowFixMe[incompatible-call],
|
|
869
931
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
932
|
+
// $FlowFixMe[incompatible-call],
|
|
870
933
|
params: props.params.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
934
|
+
// $FlowFixMe[incompatible-call],
|
|
871
935
|
body: (0, _detachedNode.asDetachedNode)(props.body),
|
|
936
|
+
// $FlowFixMe[incompatible-call],
|
|
872
937
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
938
|
+
// $FlowFixMe[incompatible-call],
|
|
873
939
|
returnType: (0, _detachedNode.asDetachedNode)(props.returnType),
|
|
940
|
+
// $FlowFixMe[incompatible-call],
|
|
874
941
|
predicate: (0, _detachedNode.asDetachedNode)(props.predicate),
|
|
875
942
|
generator: props.generator,
|
|
876
943
|
async: props.async
|
|
@@ -882,11 +949,17 @@ function FunctionDeclaration(props) {
|
|
|
882
949
|
function FunctionExpression(props) {
|
|
883
950
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
884
951
|
type: 'FunctionExpression',
|
|
952
|
+
// $FlowFixMe[incompatible-call],
|
|
885
953
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
954
|
+
// $FlowFixMe[incompatible-call],
|
|
886
955
|
params: props.params.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
956
|
+
// $FlowFixMe[incompatible-call],
|
|
887
957
|
body: (0, _detachedNode.asDetachedNode)(props.body),
|
|
958
|
+
// $FlowFixMe[incompatible-call],
|
|
888
959
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
960
|
+
// $FlowFixMe[incompatible-call],
|
|
889
961
|
returnType: (0, _detachedNode.asDetachedNode)(props.returnType),
|
|
962
|
+
// $FlowFixMe[incompatible-call],
|
|
890
963
|
predicate: (0, _detachedNode.asDetachedNode)(props.predicate),
|
|
891
964
|
generator: props.generator,
|
|
892
965
|
async: props.async
|
|
@@ -898,10 +971,15 @@ function FunctionExpression(props) {
|
|
|
898
971
|
function FunctionTypeAnnotation(props) {
|
|
899
972
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
900
973
|
type: 'FunctionTypeAnnotation',
|
|
974
|
+
// $FlowFixMe[incompatible-call],
|
|
901
975
|
params: props.params.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
976
|
+
// $FlowFixMe[incompatible-call],
|
|
902
977
|
this: (0, _detachedNode.asDetachedNode)(props.this),
|
|
978
|
+
// $FlowFixMe[incompatible-call],
|
|
903
979
|
returnType: (0, _detachedNode.asDetachedNode)(props.returnType),
|
|
980
|
+
// $FlowFixMe[incompatible-call],
|
|
904
981
|
rest: (0, _detachedNode.asDetachedNode)(props.rest),
|
|
982
|
+
// $FlowFixMe[incompatible-call],
|
|
905
983
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters)
|
|
906
984
|
});
|
|
907
985
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -911,7 +989,9 @@ function FunctionTypeAnnotation(props) {
|
|
|
911
989
|
function FunctionTypeParam(props) {
|
|
912
990
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
913
991
|
type: 'FunctionTypeParam',
|
|
992
|
+
// $FlowFixMe[incompatible-call],
|
|
914
993
|
name: (0, _detachedNode.asDetachedNode)(props.name),
|
|
994
|
+
// $FlowFixMe[incompatible-call],
|
|
915
995
|
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation),
|
|
916
996
|
optional: props.optional
|
|
917
997
|
});
|
|
@@ -922,7 +1002,9 @@ function FunctionTypeParam(props) {
|
|
|
922
1002
|
function GenericTypeAnnotation(props) {
|
|
923
1003
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
924
1004
|
type: 'GenericTypeAnnotation',
|
|
1005
|
+
// $FlowFixMe[incompatible-call],
|
|
925
1006
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
1007
|
+
// $FlowFixMe[incompatible-call],
|
|
926
1008
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters)
|
|
927
1009
|
});
|
|
928
1010
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -932,8 +1014,11 @@ function GenericTypeAnnotation(props) {
|
|
|
932
1014
|
function IfStatement(props) {
|
|
933
1015
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
934
1016
|
type: 'IfStatement',
|
|
1017
|
+
// $FlowFixMe[incompatible-call],
|
|
935
1018
|
test: (0, _detachedNode.asDetachedNode)(props.test),
|
|
1019
|
+
// $FlowFixMe[incompatible-call],
|
|
936
1020
|
consequent: (0, _detachedNode.asDetachedNode)(props.consequent),
|
|
1021
|
+
// $FlowFixMe[incompatible-call],
|
|
937
1022
|
alternate: (0, _detachedNode.asDetachedNode)(props.alternate)
|
|
938
1023
|
});
|
|
939
1024
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -943,7 +1028,9 @@ function IfStatement(props) {
|
|
|
943
1028
|
function ImportAttribute(props) {
|
|
944
1029
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
945
1030
|
type: 'ImportAttribute',
|
|
1031
|
+
// $FlowFixMe[incompatible-call],
|
|
946
1032
|
key: (0, _detachedNode.asDetachedNode)(props.key),
|
|
1033
|
+
// $FlowFixMe[incompatible-call],
|
|
947
1034
|
value: (0, _detachedNode.asDetachedNode)(props.value)
|
|
948
1035
|
});
|
|
949
1036
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -955,8 +1042,11 @@ function ImportDeclaration(props) {
|
|
|
955
1042
|
|
|
956
1043
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
957
1044
|
type: 'ImportDeclaration',
|
|
1045
|
+
// $FlowFixMe[incompatible-call],
|
|
958
1046
|
specifiers: props.specifiers.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1047
|
+
// $FlowFixMe[incompatible-call],
|
|
959
1048
|
source: (0, _detachedNode.asDetachedNode)(props.source),
|
|
1049
|
+
// $FlowFixMe[incompatible-call],
|
|
960
1050
|
assertions: (_props$assertions = props.assertions) == null ? void 0 : _props$assertions.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
961
1051
|
importKind: props.importKind
|
|
962
1052
|
});
|
|
@@ -967,6 +1057,7 @@ function ImportDeclaration(props) {
|
|
|
967
1057
|
function ImportDefaultSpecifier(props) {
|
|
968
1058
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
969
1059
|
type: 'ImportDefaultSpecifier',
|
|
1060
|
+
// $FlowFixMe[incompatible-call],
|
|
970
1061
|
local: (0, _detachedNode.asDetachedNode)(props.local)
|
|
971
1062
|
});
|
|
972
1063
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -976,7 +1067,9 @@ function ImportDefaultSpecifier(props) {
|
|
|
976
1067
|
function ImportExpression(props) {
|
|
977
1068
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
978
1069
|
type: 'ImportExpression',
|
|
1070
|
+
// $FlowFixMe[incompatible-call],
|
|
979
1071
|
source: (0, _detachedNode.asDetachedNode)(props.source),
|
|
1072
|
+
// $FlowFixMe[incompatible-call],
|
|
980
1073
|
attributes: (0, _detachedNode.asDetachedNode)(props.attributes)
|
|
981
1074
|
});
|
|
982
1075
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -986,6 +1079,7 @@ function ImportExpression(props) {
|
|
|
986
1079
|
function ImportNamespaceSpecifier(props) {
|
|
987
1080
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
988
1081
|
type: 'ImportNamespaceSpecifier',
|
|
1082
|
+
// $FlowFixMe[incompatible-call],
|
|
989
1083
|
local: (0, _detachedNode.asDetachedNode)(props.local)
|
|
990
1084
|
});
|
|
991
1085
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -995,7 +1089,9 @@ function ImportNamespaceSpecifier(props) {
|
|
|
995
1089
|
function ImportSpecifier(props) {
|
|
996
1090
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
997
1091
|
type: 'ImportSpecifier',
|
|
1092
|
+
// $FlowFixMe[incompatible-call],
|
|
998
1093
|
imported: (0, _detachedNode.asDetachedNode)(props.imported),
|
|
1094
|
+
// $FlowFixMe[incompatible-call],
|
|
999
1095
|
local: (0, _detachedNode.asDetachedNode)(props.local),
|
|
1000
1096
|
importKind: props.importKind
|
|
1001
1097
|
});
|
|
@@ -1006,7 +1102,9 @@ function ImportSpecifier(props) {
|
|
|
1006
1102
|
function IndexedAccessType(props) {
|
|
1007
1103
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1008
1104
|
type: 'IndexedAccessType',
|
|
1105
|
+
// $FlowFixMe[incompatible-call],
|
|
1009
1106
|
objectType: (0, _detachedNode.asDetachedNode)(props.objectType),
|
|
1107
|
+
// $FlowFixMe[incompatible-call],
|
|
1010
1108
|
indexType: (0, _detachedNode.asDetachedNode)(props.indexType)
|
|
1011
1109
|
});
|
|
1012
1110
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1023,9 +1121,13 @@ function InferredPredicate(props = { ...null
|
|
|
1023
1121
|
function InterfaceDeclaration(props) {
|
|
1024
1122
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1025
1123
|
type: 'InterfaceDeclaration',
|
|
1124
|
+
// $FlowFixMe[incompatible-call],
|
|
1026
1125
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
1126
|
+
// $FlowFixMe[incompatible-call],
|
|
1027
1127
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
1128
|
+
// $FlowFixMe[incompatible-call],
|
|
1028
1129
|
extends: props.extends.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1130
|
+
// $FlowFixMe[incompatible-call],
|
|
1029
1131
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
1030
1132
|
});
|
|
1031
1133
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1035,7 +1137,9 @@ function InterfaceDeclaration(props) {
|
|
|
1035
1137
|
function InterfaceExtends(props) {
|
|
1036
1138
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1037
1139
|
type: 'InterfaceExtends',
|
|
1140
|
+
// $FlowFixMe[incompatible-call],
|
|
1038
1141
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
1142
|
+
// $FlowFixMe[incompatible-call],
|
|
1039
1143
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters)
|
|
1040
1144
|
});
|
|
1041
1145
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1045,7 +1149,9 @@ function InterfaceExtends(props) {
|
|
|
1045
1149
|
function InterfaceTypeAnnotation(props) {
|
|
1046
1150
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1047
1151
|
type: 'InterfaceTypeAnnotation',
|
|
1152
|
+
// $FlowFixMe[incompatible-call],
|
|
1048
1153
|
extends: props.extends.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1154
|
+
// $FlowFixMe[incompatible-call],
|
|
1049
1155
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
1050
1156
|
});
|
|
1051
1157
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1055,6 +1161,7 @@ function InterfaceTypeAnnotation(props) {
|
|
|
1055
1161
|
function IntersectionTypeAnnotation(props) {
|
|
1056
1162
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1057
1163
|
type: 'IntersectionTypeAnnotation',
|
|
1164
|
+
// $FlowFixMe[incompatible-call],
|
|
1058
1165
|
types: props.types.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1059
1166
|
});
|
|
1060
1167
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1064,7 +1171,9 @@ function IntersectionTypeAnnotation(props) {
|
|
|
1064
1171
|
function JSXAttribute(props) {
|
|
1065
1172
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1066
1173
|
type: 'JSXAttribute',
|
|
1174
|
+
// $FlowFixMe[incompatible-call],
|
|
1067
1175
|
name: (0, _detachedNode.asDetachedNode)(props.name),
|
|
1176
|
+
// $FlowFixMe[incompatible-call],
|
|
1068
1177
|
value: (0, _detachedNode.asDetachedNode)(props.value)
|
|
1069
1178
|
});
|
|
1070
1179
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1074,6 +1183,7 @@ function JSXAttribute(props) {
|
|
|
1074
1183
|
function JSXClosingElement(props) {
|
|
1075
1184
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1076
1185
|
type: 'JSXClosingElement',
|
|
1186
|
+
// $FlowFixMe[incompatible-call],
|
|
1077
1187
|
name: (0, _detachedNode.asDetachedNode)(props.name)
|
|
1078
1188
|
});
|
|
1079
1189
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1090,8 +1200,11 @@ function JSXClosingFragment(props = { ...null
|
|
|
1090
1200
|
function JSXElement(props) {
|
|
1091
1201
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1092
1202
|
type: 'JSXElement',
|
|
1203
|
+
// $FlowFixMe[incompatible-call],
|
|
1093
1204
|
openingElement: (0, _detachedNode.asDetachedNode)(props.openingElement),
|
|
1205
|
+
// $FlowFixMe[incompatible-call],
|
|
1094
1206
|
children: props.children.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1207
|
+
// $FlowFixMe[incompatible-call],
|
|
1095
1208
|
closingElement: (0, _detachedNode.asDetachedNode)(props.closingElement)
|
|
1096
1209
|
});
|
|
1097
1210
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1108,6 +1221,7 @@ function JSXEmptyExpression(props = { ...null
|
|
|
1108
1221
|
function JSXExpressionContainer(props) {
|
|
1109
1222
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1110
1223
|
type: 'JSXExpressionContainer',
|
|
1224
|
+
// $FlowFixMe[incompatible-call],
|
|
1111
1225
|
expression: (0, _detachedNode.asDetachedNode)(props.expression)
|
|
1112
1226
|
});
|
|
1113
1227
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1117,8 +1231,11 @@ function JSXExpressionContainer(props) {
|
|
|
1117
1231
|
function JSXFragment(props) {
|
|
1118
1232
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1119
1233
|
type: 'JSXFragment',
|
|
1234
|
+
// $FlowFixMe[incompatible-call],
|
|
1120
1235
|
openingFragment: (0, _detachedNode.asDetachedNode)(props.openingFragment),
|
|
1236
|
+
// $FlowFixMe[incompatible-call],
|
|
1121
1237
|
children: props.children.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1238
|
+
// $FlowFixMe[incompatible-call],
|
|
1122
1239
|
closingFragment: (0, _detachedNode.asDetachedNode)(props.closingFragment)
|
|
1123
1240
|
});
|
|
1124
1241
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1137,7 +1254,9 @@ function JSXIdentifier(props) {
|
|
|
1137
1254
|
function JSXMemberExpression(props) {
|
|
1138
1255
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1139
1256
|
type: 'JSXMemberExpression',
|
|
1257
|
+
// $FlowFixMe[incompatible-call],
|
|
1140
1258
|
object: (0, _detachedNode.asDetachedNode)(props.object),
|
|
1259
|
+
// $FlowFixMe[incompatible-call],
|
|
1141
1260
|
property: (0, _detachedNode.asDetachedNode)(props.property)
|
|
1142
1261
|
});
|
|
1143
1262
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1147,7 +1266,9 @@ function JSXMemberExpression(props) {
|
|
|
1147
1266
|
function JSXNamespacedName(props) {
|
|
1148
1267
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1149
1268
|
type: 'JSXNamespacedName',
|
|
1269
|
+
// $FlowFixMe[incompatible-call],
|
|
1150
1270
|
namespace: (0, _detachedNode.asDetachedNode)(props.namespace),
|
|
1271
|
+
// $FlowFixMe[incompatible-call],
|
|
1151
1272
|
name: (0, _detachedNode.asDetachedNode)(props.name)
|
|
1152
1273
|
});
|
|
1153
1274
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1157,7 +1278,9 @@ function JSXNamespacedName(props) {
|
|
|
1157
1278
|
function JSXOpeningElement(props) {
|
|
1158
1279
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1159
1280
|
type: 'JSXOpeningElement',
|
|
1281
|
+
// $FlowFixMe[incompatible-call],
|
|
1160
1282
|
name: (0, _detachedNode.asDetachedNode)(props.name),
|
|
1283
|
+
// $FlowFixMe[incompatible-call],
|
|
1161
1284
|
attributes: props.attributes.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1162
1285
|
selfClosing: props.selfClosing
|
|
1163
1286
|
});
|
|
@@ -1175,6 +1298,7 @@ function JSXOpeningFragment(props = { ...null
|
|
|
1175
1298
|
function JSXSpreadAttribute(props) {
|
|
1176
1299
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1177
1300
|
type: 'JSXSpreadAttribute',
|
|
1301
|
+
// $FlowFixMe[incompatible-call],
|
|
1178
1302
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
1179
1303
|
});
|
|
1180
1304
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1184,6 +1308,7 @@ function JSXSpreadAttribute(props) {
|
|
|
1184
1308
|
function JSXSpreadChild(props) {
|
|
1185
1309
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1186
1310
|
type: 'JSXSpreadChild',
|
|
1311
|
+
// $FlowFixMe[incompatible-call],
|
|
1187
1312
|
expression: (0, _detachedNode.asDetachedNode)(props.expression)
|
|
1188
1313
|
});
|
|
1189
1314
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1203,7 +1328,9 @@ function JSXText(props) {
|
|
|
1203
1328
|
function LabeledStatement(props) {
|
|
1204
1329
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1205
1330
|
type: 'LabeledStatement',
|
|
1331
|
+
// $FlowFixMe[incompatible-call],
|
|
1206
1332
|
label: (0, _detachedNode.asDetachedNode)(props.label),
|
|
1333
|
+
// $FlowFixMe[incompatible-call],
|
|
1207
1334
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
1208
1335
|
});
|
|
1209
1336
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1213,7 +1340,9 @@ function LabeledStatement(props) {
|
|
|
1213
1340
|
function LogicalExpression(props) {
|
|
1214
1341
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1215
1342
|
type: 'LogicalExpression',
|
|
1343
|
+
// $FlowFixMe[incompatible-call],
|
|
1216
1344
|
left: (0, _detachedNode.asDetachedNode)(props.left),
|
|
1345
|
+
// $FlowFixMe[incompatible-call],
|
|
1217
1346
|
right: (0, _detachedNode.asDetachedNode)(props.right),
|
|
1218
1347
|
operator: props.operator
|
|
1219
1348
|
});
|
|
@@ -1224,7 +1353,9 @@ function LogicalExpression(props) {
|
|
|
1224
1353
|
function MemberExpression(props) {
|
|
1225
1354
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1226
1355
|
type: 'MemberExpression',
|
|
1356
|
+
// $FlowFixMe[incompatible-call],
|
|
1227
1357
|
object: (0, _detachedNode.asDetachedNode)(props.object),
|
|
1358
|
+
// $FlowFixMe[incompatible-call],
|
|
1228
1359
|
property: (0, _detachedNode.asDetachedNode)(props.property),
|
|
1229
1360
|
computed: props.computed
|
|
1230
1361
|
});
|
|
@@ -1235,7 +1366,9 @@ function MemberExpression(props) {
|
|
|
1235
1366
|
function MetaProperty(props) {
|
|
1236
1367
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1237
1368
|
type: 'MetaProperty',
|
|
1369
|
+
// $FlowFixMe[incompatible-call],
|
|
1238
1370
|
meta: (0, _detachedNode.asDetachedNode)(props.meta),
|
|
1371
|
+
// $FlowFixMe[incompatible-call],
|
|
1239
1372
|
property: (0, _detachedNode.asDetachedNode)(props.property)
|
|
1240
1373
|
});
|
|
1241
1374
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1245,7 +1378,9 @@ function MetaProperty(props) {
|
|
|
1245
1378
|
function MethodDefinition(props) {
|
|
1246
1379
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1247
1380
|
type: 'MethodDefinition',
|
|
1381
|
+
// $FlowFixMe[incompatible-call],
|
|
1248
1382
|
key: (0, _detachedNode.asDetachedNode)(props.key),
|
|
1383
|
+
// $FlowFixMe[incompatible-call],
|
|
1249
1384
|
value: (0, _detachedNode.asDetachedNode)(props.value),
|
|
1250
1385
|
kind: props.kind,
|
|
1251
1386
|
computed: props.computed,
|
|
@@ -1265,8 +1400,11 @@ function MixedTypeAnnotation(props = { ...null
|
|
|
1265
1400
|
function NewExpression(props) {
|
|
1266
1401
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1267
1402
|
type: 'NewExpression',
|
|
1403
|
+
// $FlowFixMe[incompatible-call],
|
|
1268
1404
|
callee: (0, _detachedNode.asDetachedNode)(props.callee),
|
|
1405
|
+
// $FlowFixMe[incompatible-call],
|
|
1269
1406
|
typeArguments: (0, _detachedNode.asDetachedNode)(props.typeArguments),
|
|
1407
|
+
// $FlowFixMe[incompatible-call],
|
|
1270
1408
|
arguments: props.arguments.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1271
1409
|
});
|
|
1272
1410
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1276,6 +1414,7 @@ function NewExpression(props) {
|
|
|
1276
1414
|
function NullableTypeAnnotation(props) {
|
|
1277
1415
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1278
1416
|
type: 'NullableTypeAnnotation',
|
|
1417
|
+
// $FlowFixMe[incompatible-call],
|
|
1279
1418
|
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation)
|
|
1280
1419
|
});
|
|
1281
1420
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1309,6 +1448,7 @@ function NumberTypeAnnotation(props = { ...null
|
|
|
1309
1448
|
function ObjectExpression(props) {
|
|
1310
1449
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1311
1450
|
type: 'ObjectExpression',
|
|
1451
|
+
// $FlowFixMe[incompatible-call],
|
|
1312
1452
|
properties: props.properties.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1313
1453
|
});
|
|
1314
1454
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1318,7 +1458,9 @@ function ObjectExpression(props) {
|
|
|
1318
1458
|
function ObjectPattern(props) {
|
|
1319
1459
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1320
1460
|
type: 'ObjectPattern',
|
|
1461
|
+
// $FlowFixMe[incompatible-call],
|
|
1321
1462
|
properties: props.properties.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1463
|
+
// $FlowFixMe[incompatible-call],
|
|
1322
1464
|
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation)
|
|
1323
1465
|
});
|
|
1324
1466
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1328,9 +1470,13 @@ function ObjectPattern(props) {
|
|
|
1328
1470
|
function ObjectTypeAnnotation(props) {
|
|
1329
1471
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1330
1472
|
type: 'ObjectTypeAnnotation',
|
|
1473
|
+
// $FlowFixMe[incompatible-call],
|
|
1331
1474
|
properties: props.properties.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1475
|
+
// $FlowFixMe[incompatible-call],
|
|
1332
1476
|
indexers: props.indexers.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1477
|
+
// $FlowFixMe[incompatible-call],
|
|
1333
1478
|
callProperties: props.callProperties.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1479
|
+
// $FlowFixMe[incompatible-call],
|
|
1334
1480
|
internalSlots: props.internalSlots.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1335
1481
|
inexact: props.inexact,
|
|
1336
1482
|
exact: props.exact
|
|
@@ -1342,6 +1488,7 @@ function ObjectTypeAnnotation(props) {
|
|
|
1342
1488
|
function ObjectTypeCallProperty(props) {
|
|
1343
1489
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1344
1490
|
type: 'ObjectTypeCallProperty',
|
|
1491
|
+
// $FlowFixMe[incompatible-call],
|
|
1345
1492
|
value: (0, _detachedNode.asDetachedNode)(props.value),
|
|
1346
1493
|
static: props.static
|
|
1347
1494
|
});
|
|
@@ -1352,10 +1499,14 @@ function ObjectTypeCallProperty(props) {
|
|
|
1352
1499
|
function ObjectTypeIndexer(props) {
|
|
1353
1500
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1354
1501
|
type: 'ObjectTypeIndexer',
|
|
1502
|
+
// $FlowFixMe[incompatible-call],
|
|
1355
1503
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
1504
|
+
// $FlowFixMe[incompatible-call],
|
|
1356
1505
|
key: (0, _detachedNode.asDetachedNode)(props.key),
|
|
1506
|
+
// $FlowFixMe[incompatible-call],
|
|
1357
1507
|
value: (0, _detachedNode.asDetachedNode)(props.value),
|
|
1358
1508
|
static: props.static,
|
|
1509
|
+
// $FlowFixMe[incompatible-call],
|
|
1359
1510
|
variance: (0, _detachedNode.asDetachedNode)(props.variance)
|
|
1360
1511
|
});
|
|
1361
1512
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1365,7 +1516,9 @@ function ObjectTypeIndexer(props) {
|
|
|
1365
1516
|
function ObjectTypeInternalSlot(props) {
|
|
1366
1517
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1367
1518
|
type: 'ObjectTypeInternalSlot',
|
|
1519
|
+
// $FlowFixMe[incompatible-call],
|
|
1368
1520
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
1521
|
+
// $FlowFixMe[incompatible-call],
|
|
1369
1522
|
value: (0, _detachedNode.asDetachedNode)(props.value),
|
|
1370
1523
|
optional: props.optional,
|
|
1371
1524
|
static: props.static,
|
|
@@ -1375,25 +1528,10 @@ function ObjectTypeInternalSlot(props) {
|
|
|
1375
1528
|
return node;
|
|
1376
1529
|
}
|
|
1377
1530
|
|
|
1378
|
-
function ObjectTypeProperty(props) {
|
|
1379
|
-
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1380
|
-
type: 'ObjectTypeProperty',
|
|
1381
|
-
key: (0, _detachedNode.asDetachedNode)(props.key),
|
|
1382
|
-
value: (0, _detachedNode.asDetachedNode)(props.value),
|
|
1383
|
-
method: props.method,
|
|
1384
|
-
optional: props.optional,
|
|
1385
|
-
static: props.static,
|
|
1386
|
-
proto: props.proto,
|
|
1387
|
-
variance: (0, _detachedNode.asDetachedNode)(props.variance),
|
|
1388
|
-
kind: props.kind
|
|
1389
|
-
});
|
|
1390
|
-
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1391
|
-
return node;
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
1531
|
function ObjectTypeSpreadProperty(props) {
|
|
1395
1532
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1396
1533
|
type: 'ObjectTypeSpreadProperty',
|
|
1534
|
+
// $FlowFixMe[incompatible-call],
|
|
1397
1535
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
1398
1536
|
});
|
|
1399
1537
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1403,9 +1541,13 @@ function ObjectTypeSpreadProperty(props) {
|
|
|
1403
1541
|
function OpaqueType(props) {
|
|
1404
1542
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1405
1543
|
type: 'OpaqueType',
|
|
1544
|
+
// $FlowFixMe[incompatible-call],
|
|
1406
1545
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
1546
|
+
// $FlowFixMe[incompatible-call],
|
|
1407
1547
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
1548
|
+
// $FlowFixMe[incompatible-call],
|
|
1408
1549
|
impltype: (0, _detachedNode.asDetachedNode)(props.impltype),
|
|
1550
|
+
// $FlowFixMe[incompatible-call],
|
|
1409
1551
|
supertype: (0, _detachedNode.asDetachedNode)(props.supertype)
|
|
1410
1552
|
});
|
|
1411
1553
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1415,7 +1557,9 @@ function OpaqueType(props) {
|
|
|
1415
1557
|
function OptionalIndexedAccessType(props) {
|
|
1416
1558
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1417
1559
|
type: 'OptionalIndexedAccessType',
|
|
1560
|
+
// $FlowFixMe[incompatible-call],
|
|
1418
1561
|
objectType: (0, _detachedNode.asDetachedNode)(props.objectType),
|
|
1562
|
+
// $FlowFixMe[incompatible-call],
|
|
1419
1563
|
indexType: (0, _detachedNode.asDetachedNode)(props.indexType),
|
|
1420
1564
|
optional: props.optional
|
|
1421
1565
|
});
|
|
@@ -1435,7 +1579,9 @@ function PrivateIdentifier(props) {
|
|
|
1435
1579
|
function Property(props) {
|
|
1436
1580
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1437
1581
|
type: 'Property',
|
|
1582
|
+
// $FlowFixMe[incompatible-call],
|
|
1438
1583
|
key: (0, _detachedNode.asDetachedNode)(props.key),
|
|
1584
|
+
// $FlowFixMe[incompatible-call],
|
|
1439
1585
|
value: (0, _detachedNode.asDetachedNode)(props.value),
|
|
1440
1586
|
kind: props.kind,
|
|
1441
1587
|
computed: props.computed,
|
|
@@ -1449,14 +1595,20 @@ function Property(props) {
|
|
|
1449
1595
|
function PropertyDefinition(props) {
|
|
1450
1596
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1451
1597
|
type: 'PropertyDefinition',
|
|
1598
|
+
// $FlowFixMe[incompatible-call],
|
|
1452
1599
|
key: (0, _detachedNode.asDetachedNode)(props.key),
|
|
1600
|
+
// $FlowFixMe[incompatible-call],
|
|
1453
1601
|
value: (0, _detachedNode.asDetachedNode)(props.value),
|
|
1454
1602
|
computed: props.computed,
|
|
1455
1603
|
static: props.static,
|
|
1456
1604
|
declare: props.declare,
|
|
1457
1605
|
optional: props.optional,
|
|
1606
|
+
// $FlowFixMe[incompatible-call],
|
|
1458
1607
|
variance: (0, _detachedNode.asDetachedNode)(props.variance),
|
|
1459
|
-
|
|
1608
|
+
// $FlowFixMe[incompatible-call],
|
|
1609
|
+
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation),
|
|
1610
|
+
// $FlowFixMe[incompatible-call],
|
|
1611
|
+
tsModifiers: (0, _detachedNode.asDetachedNode)(props.tsModifiers)
|
|
1460
1612
|
});
|
|
1461
1613
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1462
1614
|
return node;
|
|
@@ -1465,7 +1617,9 @@ function PropertyDefinition(props) {
|
|
|
1465
1617
|
function QualifiedTypeIdentifier(props) {
|
|
1466
1618
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1467
1619
|
type: 'QualifiedTypeIdentifier',
|
|
1620
|
+
// $FlowFixMe[incompatible-call],
|
|
1468
1621
|
qualification: (0, _detachedNode.asDetachedNode)(props.qualification),
|
|
1622
|
+
// $FlowFixMe[incompatible-call],
|
|
1469
1623
|
id: (0, _detachedNode.asDetachedNode)(props.id)
|
|
1470
1624
|
});
|
|
1471
1625
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1475,6 +1629,7 @@ function QualifiedTypeIdentifier(props) {
|
|
|
1475
1629
|
function RestElement(props) {
|
|
1476
1630
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1477
1631
|
type: 'RestElement',
|
|
1632
|
+
// $FlowFixMe[incompatible-call],
|
|
1478
1633
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
1479
1634
|
});
|
|
1480
1635
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1484,6 +1639,7 @@ function RestElement(props) {
|
|
|
1484
1639
|
function ReturnStatement(props) {
|
|
1485
1640
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1486
1641
|
type: 'ReturnStatement',
|
|
1642
|
+
// $FlowFixMe[incompatible-call],
|
|
1487
1643
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
1488
1644
|
});
|
|
1489
1645
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1493,6 +1649,7 @@ function ReturnStatement(props) {
|
|
|
1493
1649
|
function SequenceExpression(props) {
|
|
1494
1650
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1495
1651
|
type: 'SequenceExpression',
|
|
1652
|
+
// $FlowFixMe[incompatible-call],
|
|
1496
1653
|
expressions: props.expressions.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1497
1654
|
});
|
|
1498
1655
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1502,6 +1659,7 @@ function SequenceExpression(props) {
|
|
|
1502
1659
|
function SpreadElement(props) {
|
|
1503
1660
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1504
1661
|
type: 'SpreadElement',
|
|
1662
|
+
// $FlowFixMe[incompatible-call],
|
|
1505
1663
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
1506
1664
|
});
|
|
1507
1665
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1535,7 +1693,9 @@ function Super(props = { ...null
|
|
|
1535
1693
|
function SwitchCase(props) {
|
|
1536
1694
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1537
1695
|
type: 'SwitchCase',
|
|
1696
|
+
// $FlowFixMe[incompatible-call],
|
|
1538
1697
|
test: (0, _detachedNode.asDetachedNode)(props.test),
|
|
1698
|
+
// $FlowFixMe[incompatible-call],
|
|
1539
1699
|
consequent: props.consequent.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1540
1700
|
});
|
|
1541
1701
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1545,7 +1705,9 @@ function SwitchCase(props) {
|
|
|
1545
1705
|
function SwitchStatement(props) {
|
|
1546
1706
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1547
1707
|
type: 'SwitchStatement',
|
|
1708
|
+
// $FlowFixMe[incompatible-call],
|
|
1548
1709
|
discriminant: (0, _detachedNode.asDetachedNode)(props.discriminant),
|
|
1710
|
+
// $FlowFixMe[incompatible-call],
|
|
1549
1711
|
cases: props.cases.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1550
1712
|
});
|
|
1551
1713
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1562,7 +1724,9 @@ function SymbolTypeAnnotation(props = { ...null
|
|
|
1562
1724
|
function TaggedTemplateExpression(props) {
|
|
1563
1725
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1564
1726
|
type: 'TaggedTemplateExpression',
|
|
1727
|
+
// $FlowFixMe[incompatible-call],
|
|
1565
1728
|
tag: (0, _detachedNode.asDetachedNode)(props.tag),
|
|
1729
|
+
// $FlowFixMe[incompatible-call],
|
|
1566
1730
|
quasi: (0, _detachedNode.asDetachedNode)(props.quasi)
|
|
1567
1731
|
});
|
|
1568
1732
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1572,7 +1736,9 @@ function TaggedTemplateExpression(props) {
|
|
|
1572
1736
|
function TemplateLiteral(props) {
|
|
1573
1737
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1574
1738
|
type: 'TemplateLiteral',
|
|
1739
|
+
// $FlowFixMe[incompatible-call],
|
|
1575
1740
|
quasis: props.quasis.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
1741
|
+
// $FlowFixMe[incompatible-call],
|
|
1576
1742
|
expressions: props.expressions.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1577
1743
|
});
|
|
1578
1744
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1596,6 +1762,7 @@ function ThisTypeAnnotation(props = { ...null
|
|
|
1596
1762
|
function ThrowStatement(props) {
|
|
1597
1763
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1598
1764
|
type: 'ThrowStatement',
|
|
1765
|
+
// $FlowFixMe[incompatible-call],
|
|
1599
1766
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
1600
1767
|
});
|
|
1601
1768
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1605,8 +1772,11 @@ function ThrowStatement(props) {
|
|
|
1605
1772
|
function TryStatement(props) {
|
|
1606
1773
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1607
1774
|
type: 'TryStatement',
|
|
1775
|
+
// $FlowFixMe[incompatible-call],
|
|
1608
1776
|
block: (0, _detachedNode.asDetachedNode)(props.block),
|
|
1777
|
+
// $FlowFixMe[incompatible-call],
|
|
1609
1778
|
handler: (0, _detachedNode.asDetachedNode)(props.handler),
|
|
1779
|
+
// $FlowFixMe[incompatible-call],
|
|
1610
1780
|
finalizer: (0, _detachedNode.asDetachedNode)(props.finalizer)
|
|
1611
1781
|
});
|
|
1612
1782
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1616,6 +1786,7 @@ function TryStatement(props) {
|
|
|
1616
1786
|
function TupleTypeAnnotation(props) {
|
|
1617
1787
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1618
1788
|
type: 'TupleTypeAnnotation',
|
|
1789
|
+
// $FlowFixMe[incompatible-call],
|
|
1619
1790
|
types: props.types.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1620
1791
|
});
|
|
1621
1792
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1625,8 +1796,11 @@ function TupleTypeAnnotation(props) {
|
|
|
1625
1796
|
function TypeAlias(props) {
|
|
1626
1797
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1627
1798
|
type: 'TypeAlias',
|
|
1799
|
+
// $FlowFixMe[incompatible-call],
|
|
1628
1800
|
id: (0, _detachedNode.asDetachedNode)(props.id),
|
|
1801
|
+
// $FlowFixMe[incompatible-call],
|
|
1629
1802
|
typeParameters: (0, _detachedNode.asDetachedNode)(props.typeParameters),
|
|
1803
|
+
// $FlowFixMe[incompatible-call],
|
|
1630
1804
|
right: (0, _detachedNode.asDetachedNode)(props.right)
|
|
1631
1805
|
});
|
|
1632
1806
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1636,6 +1810,7 @@ function TypeAlias(props) {
|
|
|
1636
1810
|
function TypeAnnotation(props) {
|
|
1637
1811
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1638
1812
|
type: 'TypeAnnotation',
|
|
1813
|
+
// $FlowFixMe[incompatible-call],
|
|
1639
1814
|
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation)
|
|
1640
1815
|
});
|
|
1641
1816
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1645,7 +1820,9 @@ function TypeAnnotation(props) {
|
|
|
1645
1820
|
function TypeCastExpression(props) {
|
|
1646
1821
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1647
1822
|
type: 'TypeCastExpression',
|
|
1823
|
+
// $FlowFixMe[incompatible-call],
|
|
1648
1824
|
expression: (0, _detachedNode.asDetachedNode)(props.expression),
|
|
1825
|
+
// $FlowFixMe[incompatible-call],
|
|
1649
1826
|
typeAnnotation: (0, _detachedNode.asDetachedNode)(props.typeAnnotation)
|
|
1650
1827
|
});
|
|
1651
1828
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1655,6 +1832,7 @@ function TypeCastExpression(props) {
|
|
|
1655
1832
|
function TypeofTypeAnnotation(props) {
|
|
1656
1833
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1657
1834
|
type: 'TypeofTypeAnnotation',
|
|
1835
|
+
// $FlowFixMe[incompatible-call],
|
|
1658
1836
|
argument: (0, _detachedNode.asDetachedNode)(props.argument)
|
|
1659
1837
|
});
|
|
1660
1838
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1665,8 +1843,11 @@ function TypeParameter(props) {
|
|
|
1665
1843
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1666
1844
|
type: 'TypeParameter',
|
|
1667
1845
|
name: props.name,
|
|
1846
|
+
// $FlowFixMe[incompatible-call],
|
|
1668
1847
|
bound: (0, _detachedNode.asDetachedNode)(props.bound),
|
|
1848
|
+
// $FlowFixMe[incompatible-call],
|
|
1669
1849
|
variance: (0, _detachedNode.asDetachedNode)(props.variance),
|
|
1850
|
+
// $FlowFixMe[incompatible-call],
|
|
1670
1851
|
default: (0, _detachedNode.asDetachedNode)(props.default)
|
|
1671
1852
|
});
|
|
1672
1853
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1676,6 +1857,7 @@ function TypeParameter(props) {
|
|
|
1676
1857
|
function TypeParameterDeclaration(props) {
|
|
1677
1858
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1678
1859
|
type: 'TypeParameterDeclaration',
|
|
1860
|
+
// $FlowFixMe[incompatible-call],
|
|
1679
1861
|
params: props.params.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1680
1862
|
});
|
|
1681
1863
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1685,6 +1867,7 @@ function TypeParameterDeclaration(props) {
|
|
|
1685
1867
|
function TypeParameterInstantiation(props) {
|
|
1686
1868
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1687
1869
|
type: 'TypeParameterInstantiation',
|
|
1870
|
+
// $FlowFixMe[incompatible-call],
|
|
1688
1871
|
params: props.params.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1689
1872
|
});
|
|
1690
1873
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1695,6 +1878,7 @@ function UnaryExpression(props) {
|
|
|
1695
1878
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1696
1879
|
type: 'UnaryExpression',
|
|
1697
1880
|
operator: props.operator,
|
|
1881
|
+
// $FlowFixMe[incompatible-call],
|
|
1698
1882
|
argument: (0, _detachedNode.asDetachedNode)(props.argument),
|
|
1699
1883
|
prefix: props.prefix
|
|
1700
1884
|
});
|
|
@@ -1705,6 +1889,7 @@ function UnaryExpression(props) {
|
|
|
1705
1889
|
function UnionTypeAnnotation(props) {
|
|
1706
1890
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1707
1891
|
type: 'UnionTypeAnnotation',
|
|
1892
|
+
// $FlowFixMe[incompatible-call],
|
|
1708
1893
|
types: props.types.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1709
1894
|
});
|
|
1710
1895
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1715,6 +1900,7 @@ function UpdateExpression(props) {
|
|
|
1715
1900
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1716
1901
|
type: 'UpdateExpression',
|
|
1717
1902
|
operator: props.operator,
|
|
1903
|
+
// $FlowFixMe[incompatible-call],
|
|
1718
1904
|
argument: (0, _detachedNode.asDetachedNode)(props.argument),
|
|
1719
1905
|
prefix: props.prefix
|
|
1720
1906
|
});
|
|
@@ -1726,6 +1912,7 @@ function VariableDeclaration(props) {
|
|
|
1726
1912
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1727
1913
|
type: 'VariableDeclaration',
|
|
1728
1914
|
kind: props.kind,
|
|
1915
|
+
// $FlowFixMe[incompatible-call],
|
|
1729
1916
|
declarations: props.declarations.map(n => (0, _detachedNode.asDetachedNode)(n))
|
|
1730
1917
|
});
|
|
1731
1918
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1735,7 +1922,9 @@ function VariableDeclaration(props) {
|
|
|
1735
1922
|
function VariableDeclarator(props) {
|
|
1736
1923
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1737
1924
|
type: 'VariableDeclarator',
|
|
1925
|
+
// $FlowFixMe[incompatible-call],
|
|
1738
1926
|
init: (0, _detachedNode.asDetachedNode)(props.init),
|
|
1927
|
+
// $FlowFixMe[incompatible-call],
|
|
1739
1928
|
id: (0, _detachedNode.asDetachedNode)(props.id)
|
|
1740
1929
|
});
|
|
1741
1930
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1761,7 +1950,9 @@ function VoidTypeAnnotation(props = { ...null
|
|
|
1761
1950
|
function WhileStatement(props) {
|
|
1762
1951
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1763
1952
|
type: 'WhileStatement',
|
|
1953
|
+
// $FlowFixMe[incompatible-call],
|
|
1764
1954
|
body: (0, _detachedNode.asDetachedNode)(props.body),
|
|
1955
|
+
// $FlowFixMe[incompatible-call],
|
|
1765
1956
|
test: (0, _detachedNode.asDetachedNode)(props.test)
|
|
1766
1957
|
});
|
|
1767
1958
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1771,7 +1962,9 @@ function WhileStatement(props) {
|
|
|
1771
1962
|
function WithStatement(props) {
|
|
1772
1963
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1773
1964
|
type: 'WithStatement',
|
|
1965
|
+
// $FlowFixMe[incompatible-call],
|
|
1774
1966
|
object: (0, _detachedNode.asDetachedNode)(props.object),
|
|
1967
|
+
// $FlowFixMe[incompatible-call],
|
|
1775
1968
|
body: (0, _detachedNode.asDetachedNode)(props.body)
|
|
1776
1969
|
});
|
|
1777
1970
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
@@ -1781,6 +1974,7 @@ function WithStatement(props) {
|
|
|
1781
1974
|
function YieldExpression(props) {
|
|
1782
1975
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
1783
1976
|
type: 'YieldExpression',
|
|
1977
|
+
// $FlowFixMe[incompatible-call],
|
|
1784
1978
|
argument: (0, _detachedNode.asDetachedNode)(props.argument),
|
|
1785
1979
|
delegate: props.delegate
|
|
1786
1980
|
});
|