hermes-transform 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/detachedNode.js +25 -49
- package/dist/detachedNode.js.flow +3 -3
- package/dist/generated/TransformCloneSignatures.js.flow +1761 -9
- package/dist/generated/TransformReplaceSignatures.js.flow +936 -774
- package/dist/generated/node-types.js +1117 -1132
- package/dist/generated/node-types.js.flow +26 -1
- package/dist/generated/special-case-node-types.js +106 -85
- package/dist/generated/special-case-node-types.js.flow +28 -2
- package/dist/getVisitorKeys.js +4 -6
- package/dist/getVisitorKeys.js.flow +1 -1
- package/dist/index.js +13 -18
- package/dist/index.js.flow +7 -2
- package/dist/transform/Errors.js +8 -116
- package/dist/transform/Errors.js.flow +1 -1
- package/dist/transform/MutationContext.js +54 -67
- package/dist/transform/MutationContext.js.flow +1 -1
- package/dist/transform/TransformContext.js +106 -54
- package/dist/transform/TransformContext.js.flow +255 -121
- package/dist/transform/comments/comments.js +25 -25
- package/dist/transform/comments/comments.js.flow +1 -1
- package/dist/transform/comments/prettier/common/util.js +46 -47
- package/dist/transform/comments/prettier/common/util.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/comments.js +199 -216
- package/dist/transform/comments/prettier/language-js/comments.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/loc.js +10 -9
- package/dist/transform/comments/prettier/language-js/loc.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/printer-estree.js +7 -6
- package/dist/transform/comments/prettier/language-js/printer-estree.js.flow +1 -1
- package/dist/transform/comments/prettier/language-js/utils.js +18 -30
- package/dist/transform/comments/prettier/language-js/utils.js.flow +1 -1
- package/dist/transform/comments/prettier/main/comments.js +225 -298
- package/dist/transform/comments/prettier/main/comments.js.flow +1 -1
- package/dist/transform/comments/prettier/utils/get-last.js +2 -4
- package/dist/transform/comments/prettier/utils/get-last.js.flow +1 -1
- package/dist/transform/getTransformedAST.js +85 -101
- package/dist/transform/getTransformedAST.js.flow +7 -2
- package/dist/transform/mutations/AddLeadingComments.js +15 -22
- package/dist/transform/mutations/AddLeadingComments.js.flow +1 -1
- package/dist/transform/mutations/AddTrailingComments.js +15 -22
- package/dist/transform/mutations/AddTrailingComments.js.flow +1 -1
- package/dist/transform/mutations/CloneCommentsTo.js +16 -23
- package/dist/transform/mutations/CloneCommentsTo.js.flow +1 -1
- package/dist/transform/mutations/InsertStatement.js +27 -30
- package/dist/transform/mutations/InsertStatement.js.flow +1 -1
- package/dist/transform/mutations/RemoveComment.js +25 -43
- package/dist/transform/mutations/RemoveComment.js.flow +1 -1
- package/dist/transform/mutations/RemoveNode.js +185 -0
- package/dist/transform/mutations/RemoveNode.js.flow +279 -0
- package/dist/transform/mutations/RemoveStatement.js +7 -9
- package/dist/transform/mutations/RemoveStatement.js.flow +1 -1
- package/dist/transform/mutations/ReplaceNode.js +36 -44
- package/dist/transform/mutations/ReplaceNode.js.flow +1 -1
- package/dist/transform/mutations/ReplaceStatementWithMany.js +11 -13
- package/dist/transform/mutations/ReplaceStatementWithMany.js.flow +1 -1
- package/dist/transform/mutations/utils/arrayUtils.js +2 -14
- package/dist/transform/mutations/utils/arrayUtils.js.flow +1 -1
- package/dist/transform/mutations/utils/getStatementParent.js +23 -28
- package/dist/transform/mutations/utils/getStatementParent.js.flow +2 -2
- package/dist/transform/mutations/utils/isValidModuleDeclarationParent.js +7 -24
- package/dist/transform/mutations/utils/isValidModuleDeclarationParent.js.flow +1 -1
- package/dist/transform/transform.js +20 -24
- package/dist/transform/transform.js.flow +12 -8
- package/dist/traverse/NodeEventGenerator.js +91 -165
- package/dist/traverse/NodeEventGenerator.js.flow +1 -1
- package/dist/traverse/SafeEmitter.js +20 -38
- package/dist/traverse/SafeEmitter.js.flow +1 -1
- package/dist/traverse/SimpleTraverser.js +67 -98
- package/dist/traverse/SimpleTraverser.js.flow +4 -1
- package/dist/traverse/esquery.js +6 -6
- package/dist/traverse/esquery.js.flow +1 -1
- package/dist/traverse/traverse.js +39 -51
- package/dist/traverse/traverse.js.flow +1 -1
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
|
+
// lint directives to let us do some basic validation of generated files
|
|
11
|
+
|
|
12
|
+
/* eslint no-undef: 'error', no-unused-vars: ['error', {vars: "local"}], no-redeclare: 'error' */
|
|
13
|
+
|
|
14
|
+
/* global $NonMaybeType, $Partial, $ReadOnly, $ReadOnlyArray */
|
|
10
15
|
'use strict';
|
|
11
16
|
|
|
12
17
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -20,6 +25,7 @@ var _exportNames = {
|
|
|
20
25
|
AssignmentExpression: true,
|
|
21
26
|
AssignmentPattern: true,
|
|
22
27
|
AwaitExpression: true,
|
|
28
|
+
BigIntLiteralTypeAnnotation: true,
|
|
23
29
|
BinaryExpression: true,
|
|
24
30
|
BlockStatement: true,
|
|
25
31
|
BooleanLiteralTypeAnnotation: true,
|
|
@@ -170,6 +176,7 @@ exports.ArrayTypeAnnotation = ArrayTypeAnnotation;
|
|
|
170
176
|
exports.AssignmentExpression = AssignmentExpression;
|
|
171
177
|
exports.AssignmentPattern = AssignmentPattern;
|
|
172
178
|
exports.AwaitExpression = AwaitExpression;
|
|
179
|
+
exports.BigIntLiteralTypeAnnotation = BigIntLiteralTypeAnnotation;
|
|
173
180
|
exports.BinaryExpression = BinaryExpression;
|
|
174
181
|
exports.BlockStatement = BlockStatement;
|
|
175
182
|
exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation;
|
|
@@ -321,1751 +328,1729 @@ Object.keys(_specialCaseNodeTypes).forEach(function (key) {
|
|
|
321
328
|
if (key === "default" || key === "__esModule") return;
|
|
322
329
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
323
330
|
if (key in exports && exports[key] === _specialCaseNodeTypes[key]) return;
|
|
324
|
-
|
|
325
|
-
enumerable: true,
|
|
326
|
-
get: function get() {
|
|
327
|
-
return _specialCaseNodeTypes[key];
|
|
328
|
-
}
|
|
329
|
-
});
|
|
331
|
+
exports[key] = _specialCaseNodeTypes[key];
|
|
330
332
|
});
|
|
331
|
-
var _excluded = ["parent"],
|
|
332
|
-
_excluded2 = ["parent"],
|
|
333
|
-
_excluded3 = ["parent"],
|
|
334
|
-
_excluded4 = ["parent"],
|
|
335
|
-
_excluded5 = ["parent"],
|
|
336
|
-
_excluded6 = ["parent"],
|
|
337
|
-
_excluded7 = ["parent"],
|
|
338
|
-
_excluded8 = ["parent"],
|
|
339
|
-
_excluded9 = ["parent"],
|
|
340
|
-
_excluded10 = ["parent"],
|
|
341
|
-
_excluded11 = ["parent"],
|
|
342
|
-
_excluded12 = ["parent"],
|
|
343
|
-
_excluded13 = ["parent"],
|
|
344
|
-
_excluded14 = ["parent"],
|
|
345
|
-
_excluded15 = ["parent"],
|
|
346
|
-
_excluded16 = ["parent"],
|
|
347
|
-
_excluded17 = ["parent"],
|
|
348
|
-
_excluded18 = ["parent"],
|
|
349
|
-
_excluded19 = ["parent"],
|
|
350
|
-
_excluded20 = ["parent"],
|
|
351
|
-
_excluded21 = ["parent"],
|
|
352
|
-
_excluded22 = ["parent"],
|
|
353
|
-
_excluded23 = ["parent"],
|
|
354
|
-
_excluded24 = ["parent"],
|
|
355
|
-
_excluded25 = ["parent"],
|
|
356
|
-
_excluded26 = ["parent"],
|
|
357
|
-
_excluded27 = ["parent"],
|
|
358
|
-
_excluded28 = ["parent"],
|
|
359
|
-
_excluded29 = ["parent"],
|
|
360
|
-
_excluded30 = ["parent"],
|
|
361
|
-
_excluded31 = ["parent"],
|
|
362
|
-
_excluded32 = ["parent"],
|
|
363
|
-
_excluded33 = ["parent"],
|
|
364
|
-
_excluded34 = ["parent"],
|
|
365
|
-
_excluded35 = ["parent"],
|
|
366
|
-
_excluded36 = ["parent"],
|
|
367
|
-
_excluded37 = ["parent"],
|
|
368
|
-
_excluded38 = ["parent"],
|
|
369
|
-
_excluded39 = ["parent"],
|
|
370
|
-
_excluded40 = ["parent"],
|
|
371
|
-
_excluded41 = ["parent"],
|
|
372
|
-
_excluded42 = ["parent"],
|
|
373
|
-
_excluded43 = ["parent"],
|
|
374
|
-
_excluded44 = ["parent"],
|
|
375
|
-
_excluded45 = ["parent"],
|
|
376
|
-
_excluded46 = ["parent"],
|
|
377
|
-
_excluded47 = ["parent"],
|
|
378
|
-
_excluded48 = ["parent"],
|
|
379
|
-
_excluded49 = ["parent"],
|
|
380
|
-
_excluded50 = ["parent"],
|
|
381
|
-
_excluded51 = ["parent"],
|
|
382
|
-
_excluded52 = ["parent"],
|
|
383
|
-
_excluded53 = ["parent"],
|
|
384
|
-
_excluded54 = ["parent"],
|
|
385
|
-
_excluded55 = ["parent"],
|
|
386
|
-
_excluded56 = ["parent"],
|
|
387
|
-
_excluded57 = ["parent"],
|
|
388
|
-
_excluded58 = ["parent"],
|
|
389
|
-
_excluded59 = ["parent"],
|
|
390
|
-
_excluded60 = ["parent"],
|
|
391
|
-
_excluded61 = ["parent"],
|
|
392
|
-
_excluded62 = ["parent"],
|
|
393
|
-
_excluded63 = ["parent"],
|
|
394
|
-
_excluded64 = ["parent"],
|
|
395
|
-
_excluded65 = ["parent"],
|
|
396
|
-
_excluded66 = ["parent"],
|
|
397
|
-
_excluded67 = ["parent"],
|
|
398
|
-
_excluded68 = ["parent"],
|
|
399
|
-
_excluded69 = ["parent"],
|
|
400
|
-
_excluded70 = ["parent"],
|
|
401
|
-
_excluded71 = ["parent"],
|
|
402
|
-
_excluded72 = ["parent"],
|
|
403
|
-
_excluded73 = ["parent"],
|
|
404
|
-
_excluded74 = ["parent"],
|
|
405
|
-
_excluded75 = ["parent"],
|
|
406
|
-
_excluded76 = ["parent"],
|
|
407
|
-
_excluded77 = ["parent"],
|
|
408
|
-
_excluded78 = ["parent"],
|
|
409
|
-
_excluded79 = ["parent"],
|
|
410
|
-
_excluded80 = ["parent"],
|
|
411
|
-
_excluded81 = ["parent"],
|
|
412
|
-
_excluded82 = ["parent"],
|
|
413
|
-
_excluded83 = ["parent"],
|
|
414
|
-
_excluded84 = ["parent"],
|
|
415
|
-
_excluded85 = ["parent"],
|
|
416
|
-
_excluded86 = ["parent"],
|
|
417
|
-
_excluded87 = ["parent"],
|
|
418
|
-
_excluded88 = ["parent"],
|
|
419
|
-
_excluded89 = ["parent"],
|
|
420
|
-
_excluded90 = ["parent"],
|
|
421
|
-
_excluded91 = ["parent"],
|
|
422
|
-
_excluded92 = ["parent"],
|
|
423
|
-
_excluded93 = ["parent"],
|
|
424
|
-
_excluded94 = ["parent"],
|
|
425
|
-
_excluded95 = ["parent"],
|
|
426
|
-
_excluded96 = ["parent"],
|
|
427
|
-
_excluded97 = ["parent"],
|
|
428
|
-
_excluded98 = ["parent"],
|
|
429
|
-
_excluded99 = ["parent"],
|
|
430
|
-
_excluded100 = ["parent"],
|
|
431
|
-
_excluded101 = ["parent"],
|
|
432
|
-
_excluded102 = ["parent"],
|
|
433
|
-
_excluded103 = ["parent"],
|
|
434
|
-
_excluded104 = ["parent"],
|
|
435
|
-
_excluded105 = ["parent"],
|
|
436
|
-
_excluded106 = ["parent"],
|
|
437
|
-
_excluded107 = ["parent"],
|
|
438
|
-
_excluded108 = ["parent"],
|
|
439
|
-
_excluded109 = ["parent"],
|
|
440
|
-
_excluded110 = ["parent"],
|
|
441
|
-
_excluded111 = ["parent"],
|
|
442
|
-
_excluded112 = ["parent"],
|
|
443
|
-
_excluded113 = ["parent"],
|
|
444
|
-
_excluded114 = ["parent"],
|
|
445
|
-
_excluded115 = ["parent"],
|
|
446
|
-
_excluded116 = ["parent"],
|
|
447
|
-
_excluded117 = ["parent"],
|
|
448
|
-
_excluded118 = ["parent"],
|
|
449
|
-
_excluded119 = ["parent"],
|
|
450
|
-
_excluded120 = ["parent"],
|
|
451
|
-
_excluded121 = ["parent"],
|
|
452
|
-
_excluded122 = ["parent"],
|
|
453
|
-
_excluded123 = ["parent"],
|
|
454
|
-
_excluded124 = ["parent"],
|
|
455
|
-
_excluded125 = ["parent"],
|
|
456
|
-
_excluded126 = ["parent"],
|
|
457
|
-
_excluded127 = ["parent"],
|
|
458
|
-
_excluded128 = ["parent"],
|
|
459
|
-
_excluded129 = ["parent"],
|
|
460
|
-
_excluded130 = ["parent"];
|
|
461
|
-
|
|
462
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
463
|
-
|
|
464
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
465
|
-
|
|
466
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
467
|
-
|
|
468
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
469
|
-
|
|
470
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
471
|
-
|
|
472
|
-
function AnyTypeAnnotation() {
|
|
473
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
474
|
-
parent = _ref.parent;
|
|
475
333
|
|
|
334
|
+
function AnyTypeAnnotation({
|
|
335
|
+
parent
|
|
336
|
+
} = {}) {
|
|
476
337
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
477
338
|
type: 'AnyTypeAnnotation'
|
|
478
339
|
});
|
|
479
340
|
}
|
|
480
341
|
|
|
481
|
-
function ArrayExpression(
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
type: 'ArrayExpression'
|
|
487
|
-
|
|
342
|
+
function ArrayExpression({
|
|
343
|
+
parent,
|
|
344
|
+
...props
|
|
345
|
+
}) {
|
|
346
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
347
|
+
type: 'ArrayExpression',
|
|
348
|
+
...props
|
|
349
|
+
});
|
|
488
350
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
489
351
|
return node;
|
|
490
352
|
}
|
|
491
353
|
|
|
492
|
-
function ArrayPattern(
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
type: 'ArrayPattern'
|
|
498
|
-
|
|
354
|
+
function ArrayPattern({
|
|
355
|
+
parent,
|
|
356
|
+
...props
|
|
357
|
+
}) {
|
|
358
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
359
|
+
type: 'ArrayPattern',
|
|
360
|
+
...props
|
|
361
|
+
});
|
|
499
362
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
500
363
|
return node;
|
|
501
364
|
}
|
|
502
365
|
|
|
503
|
-
function ArrayTypeAnnotation(
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
type: 'ArrayTypeAnnotation'
|
|
509
|
-
|
|
366
|
+
function ArrayTypeAnnotation({
|
|
367
|
+
parent,
|
|
368
|
+
...props
|
|
369
|
+
}) {
|
|
370
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
371
|
+
type: 'ArrayTypeAnnotation',
|
|
372
|
+
...props
|
|
373
|
+
});
|
|
510
374
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
511
375
|
return node;
|
|
512
376
|
}
|
|
513
377
|
|
|
514
|
-
function AssignmentExpression(
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
type: 'AssignmentExpression'
|
|
520
|
-
|
|
378
|
+
function AssignmentExpression({
|
|
379
|
+
parent,
|
|
380
|
+
...props
|
|
381
|
+
}) {
|
|
382
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
383
|
+
type: 'AssignmentExpression',
|
|
384
|
+
...props
|
|
385
|
+
});
|
|
521
386
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
522
387
|
return node;
|
|
523
388
|
}
|
|
524
389
|
|
|
525
|
-
function AssignmentPattern(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
type: 'AssignmentPattern'
|
|
531
|
-
|
|
390
|
+
function AssignmentPattern({
|
|
391
|
+
parent,
|
|
392
|
+
...props
|
|
393
|
+
}) {
|
|
394
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
395
|
+
type: 'AssignmentPattern',
|
|
396
|
+
...props
|
|
397
|
+
});
|
|
532
398
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
533
399
|
return node;
|
|
534
400
|
}
|
|
535
401
|
|
|
536
|
-
function AwaitExpression(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
type: 'AwaitExpression'
|
|
542
|
-
|
|
402
|
+
function AwaitExpression({
|
|
403
|
+
parent,
|
|
404
|
+
...props
|
|
405
|
+
}) {
|
|
406
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
407
|
+
type: 'AwaitExpression',
|
|
408
|
+
...props
|
|
409
|
+
});
|
|
543
410
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
544
411
|
return node;
|
|
545
412
|
}
|
|
546
413
|
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
type: '
|
|
553
|
-
|
|
414
|
+
function BigIntLiteralTypeAnnotation({
|
|
415
|
+
parent,
|
|
416
|
+
...props
|
|
417
|
+
}) {
|
|
418
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
419
|
+
type: 'BigIntLiteralTypeAnnotation',
|
|
420
|
+
...props
|
|
421
|
+
});
|
|
554
422
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
555
423
|
return node;
|
|
556
424
|
}
|
|
557
425
|
|
|
558
|
-
function
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
type: '
|
|
564
|
-
|
|
426
|
+
function BinaryExpression({
|
|
427
|
+
parent,
|
|
428
|
+
...props
|
|
429
|
+
}) {
|
|
430
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
431
|
+
type: 'BinaryExpression',
|
|
432
|
+
...props
|
|
433
|
+
});
|
|
565
434
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
566
435
|
return node;
|
|
567
436
|
}
|
|
568
437
|
|
|
569
|
-
function
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
type: '
|
|
575
|
-
|
|
438
|
+
function BlockStatement({
|
|
439
|
+
parent,
|
|
440
|
+
...props
|
|
441
|
+
}) {
|
|
442
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
443
|
+
type: 'BlockStatement',
|
|
444
|
+
...props
|
|
445
|
+
});
|
|
576
446
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
577
447
|
return node;
|
|
578
448
|
}
|
|
579
449
|
|
|
580
|
-
function
|
|
581
|
-
|
|
582
|
-
|
|
450
|
+
function BooleanLiteralTypeAnnotation({
|
|
451
|
+
parent,
|
|
452
|
+
...props
|
|
453
|
+
}) {
|
|
454
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
455
|
+
type: 'BooleanLiteralTypeAnnotation',
|
|
456
|
+
...props
|
|
457
|
+
});
|
|
458
|
+
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
459
|
+
return node;
|
|
460
|
+
}
|
|
583
461
|
|
|
462
|
+
function BooleanTypeAnnotation({
|
|
463
|
+
parent
|
|
464
|
+
} = {}) {
|
|
584
465
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
585
466
|
type: 'BooleanTypeAnnotation'
|
|
586
467
|
});
|
|
587
468
|
}
|
|
588
469
|
|
|
589
|
-
function BreakStatement(
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
type: 'BreakStatement'
|
|
595
|
-
|
|
470
|
+
function BreakStatement({
|
|
471
|
+
parent,
|
|
472
|
+
...props
|
|
473
|
+
}) {
|
|
474
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
475
|
+
type: 'BreakStatement',
|
|
476
|
+
...props
|
|
477
|
+
});
|
|
596
478
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
597
479
|
return node;
|
|
598
480
|
}
|
|
599
481
|
|
|
600
|
-
function CallExpression(
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
type: 'CallExpression'
|
|
606
|
-
|
|
482
|
+
function CallExpression({
|
|
483
|
+
parent,
|
|
484
|
+
...props
|
|
485
|
+
}) {
|
|
486
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
487
|
+
type: 'CallExpression',
|
|
488
|
+
...props
|
|
489
|
+
});
|
|
607
490
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
608
491
|
return node;
|
|
609
492
|
}
|
|
610
493
|
|
|
611
|
-
function CatchClause(
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
type: 'CatchClause'
|
|
617
|
-
|
|
494
|
+
function CatchClause({
|
|
495
|
+
parent,
|
|
496
|
+
...props
|
|
497
|
+
}) {
|
|
498
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
499
|
+
type: 'CatchClause',
|
|
500
|
+
...props
|
|
501
|
+
});
|
|
618
502
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
619
503
|
return node;
|
|
620
504
|
}
|
|
621
505
|
|
|
622
|
-
function ClassBody(
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
type: 'ClassBody'
|
|
628
|
-
|
|
506
|
+
function ClassBody({
|
|
507
|
+
parent,
|
|
508
|
+
...props
|
|
509
|
+
}) {
|
|
510
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
511
|
+
type: 'ClassBody',
|
|
512
|
+
...props
|
|
513
|
+
});
|
|
629
514
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
630
515
|
return node;
|
|
631
516
|
}
|
|
632
517
|
|
|
633
|
-
function ClassDeclaration(
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
type: 'ClassDeclaration'
|
|
639
|
-
|
|
518
|
+
function ClassDeclaration({
|
|
519
|
+
parent,
|
|
520
|
+
...props
|
|
521
|
+
}) {
|
|
522
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
523
|
+
type: 'ClassDeclaration',
|
|
524
|
+
...props
|
|
525
|
+
});
|
|
640
526
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
641
527
|
return node;
|
|
642
528
|
}
|
|
643
529
|
|
|
644
|
-
function ClassExpression(
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
type: 'ClassExpression'
|
|
650
|
-
|
|
530
|
+
function ClassExpression({
|
|
531
|
+
parent,
|
|
532
|
+
...props
|
|
533
|
+
}) {
|
|
534
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
535
|
+
type: 'ClassExpression',
|
|
536
|
+
...props
|
|
537
|
+
});
|
|
651
538
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
652
539
|
return node;
|
|
653
540
|
}
|
|
654
541
|
|
|
655
|
-
function ClassImplements(
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
type: 'ClassImplements'
|
|
661
|
-
|
|
542
|
+
function ClassImplements({
|
|
543
|
+
parent,
|
|
544
|
+
...props
|
|
545
|
+
}) {
|
|
546
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
547
|
+
type: 'ClassImplements',
|
|
548
|
+
...props
|
|
549
|
+
});
|
|
662
550
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
663
551
|
return node;
|
|
664
552
|
}
|
|
665
553
|
|
|
666
|
-
function ClassPrivateProperty(
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
type: 'ClassPrivateProperty'
|
|
672
|
-
|
|
554
|
+
function ClassPrivateProperty({
|
|
555
|
+
parent,
|
|
556
|
+
...props
|
|
557
|
+
}) {
|
|
558
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
559
|
+
type: 'ClassPrivateProperty',
|
|
560
|
+
...props
|
|
561
|
+
});
|
|
673
562
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
674
563
|
return node;
|
|
675
564
|
}
|
|
676
565
|
|
|
677
|
-
function ClassProperty(
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
type: 'ClassProperty'
|
|
683
|
-
|
|
566
|
+
function ClassProperty({
|
|
567
|
+
parent,
|
|
568
|
+
...props
|
|
569
|
+
}) {
|
|
570
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
571
|
+
type: 'ClassProperty',
|
|
572
|
+
...props
|
|
573
|
+
});
|
|
684
574
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
685
575
|
return node;
|
|
686
576
|
}
|
|
687
577
|
|
|
688
|
-
function ConditionalExpression(
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
type: 'ConditionalExpression'
|
|
694
|
-
|
|
578
|
+
function ConditionalExpression({
|
|
579
|
+
parent,
|
|
580
|
+
...props
|
|
581
|
+
}) {
|
|
582
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
583
|
+
type: 'ConditionalExpression',
|
|
584
|
+
...props
|
|
585
|
+
});
|
|
695
586
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
696
587
|
return node;
|
|
697
588
|
}
|
|
698
589
|
|
|
699
|
-
function ContinueStatement(
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
type: 'ContinueStatement'
|
|
705
|
-
|
|
590
|
+
function ContinueStatement({
|
|
591
|
+
parent,
|
|
592
|
+
...props
|
|
593
|
+
}) {
|
|
594
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
595
|
+
type: 'ContinueStatement',
|
|
596
|
+
...props
|
|
597
|
+
});
|
|
706
598
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
707
599
|
return node;
|
|
708
600
|
}
|
|
709
601
|
|
|
710
|
-
function DebuggerStatement(
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
602
|
+
function DebuggerStatement({
|
|
603
|
+
parent
|
|
604
|
+
} = {}) {
|
|
714
605
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
715
606
|
type: 'DebuggerStatement'
|
|
716
607
|
});
|
|
717
608
|
}
|
|
718
609
|
|
|
719
|
-
function DeclareClass(
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
type: 'DeclareClass'
|
|
725
|
-
|
|
610
|
+
function DeclareClass({
|
|
611
|
+
parent,
|
|
612
|
+
...props
|
|
613
|
+
}) {
|
|
614
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
615
|
+
type: 'DeclareClass',
|
|
616
|
+
...props
|
|
617
|
+
});
|
|
726
618
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
727
619
|
return node;
|
|
728
620
|
}
|
|
729
621
|
|
|
730
|
-
function DeclaredPredicate(
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
type: 'DeclaredPredicate'
|
|
736
|
-
|
|
622
|
+
function DeclaredPredicate({
|
|
623
|
+
parent,
|
|
624
|
+
...props
|
|
625
|
+
}) {
|
|
626
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
627
|
+
type: 'DeclaredPredicate',
|
|
628
|
+
...props
|
|
629
|
+
});
|
|
737
630
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
738
631
|
return node;
|
|
739
632
|
}
|
|
740
633
|
|
|
741
|
-
function DeclareExportAllDeclaration(
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
type: 'DeclareExportAllDeclaration'
|
|
747
|
-
|
|
634
|
+
function DeclareExportAllDeclaration({
|
|
635
|
+
parent,
|
|
636
|
+
...props
|
|
637
|
+
}) {
|
|
638
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
639
|
+
type: 'DeclareExportAllDeclaration',
|
|
640
|
+
...props
|
|
641
|
+
});
|
|
748
642
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
749
643
|
return node;
|
|
750
644
|
}
|
|
751
645
|
|
|
752
|
-
function DeclareExportDeclaration(
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
type: 'DeclareExportDeclaration'
|
|
758
|
-
|
|
646
|
+
function DeclareExportDeclaration({
|
|
647
|
+
parent,
|
|
648
|
+
...props
|
|
649
|
+
}) {
|
|
650
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
651
|
+
type: 'DeclareExportDeclaration',
|
|
652
|
+
...props
|
|
653
|
+
});
|
|
759
654
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
760
655
|
return node;
|
|
761
656
|
}
|
|
762
657
|
|
|
763
|
-
function DeclareFunction(
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
type: 'DeclareFunction'
|
|
769
|
-
|
|
658
|
+
function DeclareFunction({
|
|
659
|
+
parent,
|
|
660
|
+
...props
|
|
661
|
+
}) {
|
|
662
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
663
|
+
type: 'DeclareFunction',
|
|
664
|
+
...props
|
|
665
|
+
});
|
|
770
666
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
771
667
|
return node;
|
|
772
668
|
}
|
|
773
669
|
|
|
774
|
-
function DeclareInterface(
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
type: 'DeclareInterface'
|
|
780
|
-
|
|
670
|
+
function DeclareInterface({
|
|
671
|
+
parent,
|
|
672
|
+
...props
|
|
673
|
+
}) {
|
|
674
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
675
|
+
type: 'DeclareInterface',
|
|
676
|
+
...props
|
|
677
|
+
});
|
|
781
678
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
782
679
|
return node;
|
|
783
680
|
}
|
|
784
681
|
|
|
785
|
-
function DeclareModule(
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
type: 'DeclareModule'
|
|
791
|
-
|
|
682
|
+
function DeclareModule({
|
|
683
|
+
parent,
|
|
684
|
+
...props
|
|
685
|
+
}) {
|
|
686
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
687
|
+
type: 'DeclareModule',
|
|
688
|
+
...props
|
|
689
|
+
});
|
|
792
690
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
793
691
|
return node;
|
|
794
692
|
}
|
|
795
693
|
|
|
796
|
-
function DeclareModuleExports(
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
type: 'DeclareModuleExports'
|
|
802
|
-
|
|
694
|
+
function DeclareModuleExports({
|
|
695
|
+
parent,
|
|
696
|
+
...props
|
|
697
|
+
}) {
|
|
698
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
699
|
+
type: 'DeclareModuleExports',
|
|
700
|
+
...props
|
|
701
|
+
});
|
|
803
702
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
804
703
|
return node;
|
|
805
704
|
}
|
|
806
705
|
|
|
807
|
-
function DeclareOpaqueType(
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
type: 'DeclareOpaqueType'
|
|
813
|
-
|
|
706
|
+
function DeclareOpaqueType({
|
|
707
|
+
parent,
|
|
708
|
+
...props
|
|
709
|
+
}) {
|
|
710
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
711
|
+
type: 'DeclareOpaqueType',
|
|
712
|
+
...props
|
|
713
|
+
});
|
|
814
714
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
815
715
|
return node;
|
|
816
716
|
}
|
|
817
717
|
|
|
818
|
-
function DeclareTypeAlias(
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
type: 'DeclareTypeAlias'
|
|
824
|
-
|
|
718
|
+
function DeclareTypeAlias({
|
|
719
|
+
parent,
|
|
720
|
+
...props
|
|
721
|
+
}) {
|
|
722
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
723
|
+
type: 'DeclareTypeAlias',
|
|
724
|
+
...props
|
|
725
|
+
});
|
|
825
726
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
826
727
|
return node;
|
|
827
728
|
}
|
|
828
729
|
|
|
829
|
-
function DeclareVariable(
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
type: 'DeclareVariable'
|
|
835
|
-
|
|
730
|
+
function DeclareVariable({
|
|
731
|
+
parent,
|
|
732
|
+
...props
|
|
733
|
+
}) {
|
|
734
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
735
|
+
type: 'DeclareVariable',
|
|
736
|
+
...props
|
|
737
|
+
});
|
|
836
738
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
837
739
|
return node;
|
|
838
740
|
}
|
|
839
741
|
|
|
840
|
-
function DoWhileStatement(
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
type: 'DoWhileStatement'
|
|
846
|
-
|
|
742
|
+
function DoWhileStatement({
|
|
743
|
+
parent,
|
|
744
|
+
...props
|
|
745
|
+
}) {
|
|
746
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
747
|
+
type: 'DoWhileStatement',
|
|
748
|
+
...props
|
|
749
|
+
});
|
|
847
750
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
848
751
|
return node;
|
|
849
752
|
}
|
|
850
753
|
|
|
851
|
-
function EmptyStatement(
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
754
|
+
function EmptyStatement({
|
|
755
|
+
parent
|
|
756
|
+
} = {}) {
|
|
855
757
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
856
758
|
type: 'EmptyStatement'
|
|
857
759
|
});
|
|
858
760
|
}
|
|
859
761
|
|
|
860
|
-
function EmptyTypeAnnotation(
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
762
|
+
function EmptyTypeAnnotation({
|
|
763
|
+
parent
|
|
764
|
+
} = {}) {
|
|
864
765
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
865
766
|
type: 'EmptyTypeAnnotation'
|
|
866
767
|
});
|
|
867
768
|
}
|
|
868
769
|
|
|
869
|
-
function EnumBooleanBody(
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
type: 'EnumBooleanBody'
|
|
875
|
-
|
|
770
|
+
function EnumBooleanBody({
|
|
771
|
+
parent,
|
|
772
|
+
...props
|
|
773
|
+
}) {
|
|
774
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
775
|
+
type: 'EnumBooleanBody',
|
|
776
|
+
...props
|
|
777
|
+
});
|
|
876
778
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
877
779
|
return node;
|
|
878
780
|
}
|
|
879
781
|
|
|
880
|
-
function EnumBooleanMember(
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
type: 'EnumBooleanMember'
|
|
886
|
-
|
|
782
|
+
function EnumBooleanMember({
|
|
783
|
+
parent,
|
|
784
|
+
...props
|
|
785
|
+
}) {
|
|
786
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
787
|
+
type: 'EnumBooleanMember',
|
|
788
|
+
...props
|
|
789
|
+
});
|
|
887
790
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
888
791
|
return node;
|
|
889
792
|
}
|
|
890
793
|
|
|
891
|
-
function EnumDeclaration(
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
type: 'EnumDeclaration'
|
|
897
|
-
|
|
794
|
+
function EnumDeclaration({
|
|
795
|
+
parent,
|
|
796
|
+
...props
|
|
797
|
+
}) {
|
|
798
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
799
|
+
type: 'EnumDeclaration',
|
|
800
|
+
...props
|
|
801
|
+
});
|
|
898
802
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
899
803
|
return node;
|
|
900
804
|
}
|
|
901
805
|
|
|
902
|
-
function EnumDefaultedMember(
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
type: 'EnumDefaultedMember'
|
|
908
|
-
|
|
806
|
+
function EnumDefaultedMember({
|
|
807
|
+
parent,
|
|
808
|
+
...props
|
|
809
|
+
}) {
|
|
810
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
811
|
+
type: 'EnumDefaultedMember',
|
|
812
|
+
...props
|
|
813
|
+
});
|
|
909
814
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
910
815
|
return node;
|
|
911
816
|
}
|
|
912
817
|
|
|
913
|
-
function EnumNumberBody(
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
type: 'EnumNumberBody'
|
|
919
|
-
|
|
818
|
+
function EnumNumberBody({
|
|
819
|
+
parent,
|
|
820
|
+
...props
|
|
821
|
+
}) {
|
|
822
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
823
|
+
type: 'EnumNumberBody',
|
|
824
|
+
...props
|
|
825
|
+
});
|
|
920
826
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
921
827
|
return node;
|
|
922
828
|
}
|
|
923
829
|
|
|
924
|
-
function EnumNumberMember(
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
type: 'EnumNumberMember'
|
|
930
|
-
|
|
830
|
+
function EnumNumberMember({
|
|
831
|
+
parent,
|
|
832
|
+
...props
|
|
833
|
+
}) {
|
|
834
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
835
|
+
type: 'EnumNumberMember',
|
|
836
|
+
...props
|
|
837
|
+
});
|
|
931
838
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
932
839
|
return node;
|
|
933
840
|
}
|
|
934
841
|
|
|
935
|
-
function EnumStringBody(
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
type: 'EnumStringBody'
|
|
941
|
-
|
|
842
|
+
function EnumStringBody({
|
|
843
|
+
parent,
|
|
844
|
+
...props
|
|
845
|
+
}) {
|
|
846
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
847
|
+
type: 'EnumStringBody',
|
|
848
|
+
...props
|
|
849
|
+
});
|
|
942
850
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
943
851
|
return node;
|
|
944
852
|
}
|
|
945
853
|
|
|
946
|
-
function EnumStringMember(
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
type: 'EnumStringMember'
|
|
952
|
-
|
|
854
|
+
function EnumStringMember({
|
|
855
|
+
parent,
|
|
856
|
+
...props
|
|
857
|
+
}) {
|
|
858
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
859
|
+
type: 'EnumStringMember',
|
|
860
|
+
...props
|
|
861
|
+
});
|
|
953
862
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
954
863
|
return node;
|
|
955
864
|
}
|
|
956
865
|
|
|
957
|
-
function EnumSymbolBody(
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
type: 'EnumSymbolBody'
|
|
963
|
-
|
|
866
|
+
function EnumSymbolBody({
|
|
867
|
+
parent,
|
|
868
|
+
...props
|
|
869
|
+
}) {
|
|
870
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
871
|
+
type: 'EnumSymbolBody',
|
|
872
|
+
...props
|
|
873
|
+
});
|
|
964
874
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
965
875
|
return node;
|
|
966
876
|
}
|
|
967
877
|
|
|
968
|
-
function ExistsTypeAnnotation(
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
878
|
+
function ExistsTypeAnnotation({
|
|
879
|
+
parent
|
|
880
|
+
} = {}) {
|
|
972
881
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
973
882
|
type: 'ExistsTypeAnnotation'
|
|
974
883
|
});
|
|
975
884
|
}
|
|
976
885
|
|
|
977
|
-
function ExportAllDeclaration(
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
type: 'ExportAllDeclaration'
|
|
983
|
-
|
|
886
|
+
function ExportAllDeclaration({
|
|
887
|
+
parent,
|
|
888
|
+
...props
|
|
889
|
+
}) {
|
|
890
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
891
|
+
type: 'ExportAllDeclaration',
|
|
892
|
+
...props
|
|
893
|
+
});
|
|
984
894
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
985
895
|
return node;
|
|
986
896
|
}
|
|
987
897
|
|
|
988
|
-
function ExportDefaultDeclaration(
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
type: 'ExportDefaultDeclaration'
|
|
994
|
-
|
|
898
|
+
function ExportDefaultDeclaration({
|
|
899
|
+
parent,
|
|
900
|
+
...props
|
|
901
|
+
}) {
|
|
902
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
903
|
+
type: 'ExportDefaultDeclaration',
|
|
904
|
+
...props
|
|
905
|
+
});
|
|
995
906
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
996
907
|
return node;
|
|
997
908
|
}
|
|
998
909
|
|
|
999
|
-
function ExportNamedDeclaration(
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
type: 'ExportNamedDeclaration'
|
|
1005
|
-
|
|
910
|
+
function ExportNamedDeclaration({
|
|
911
|
+
parent,
|
|
912
|
+
...props
|
|
913
|
+
}) {
|
|
914
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
915
|
+
type: 'ExportNamedDeclaration',
|
|
916
|
+
...props
|
|
917
|
+
});
|
|
1006
918
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1007
919
|
return node;
|
|
1008
920
|
}
|
|
1009
921
|
|
|
1010
|
-
function ExportNamespaceSpecifier(
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
type: 'ExportNamespaceSpecifier'
|
|
1016
|
-
|
|
922
|
+
function ExportNamespaceSpecifier({
|
|
923
|
+
parent,
|
|
924
|
+
...props
|
|
925
|
+
}) {
|
|
926
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
927
|
+
type: 'ExportNamespaceSpecifier',
|
|
928
|
+
...props
|
|
929
|
+
});
|
|
1017
930
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1018
931
|
return node;
|
|
1019
932
|
}
|
|
1020
933
|
|
|
1021
|
-
function ExportSpecifier(
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
type: 'ExportSpecifier'
|
|
1027
|
-
|
|
934
|
+
function ExportSpecifier({
|
|
935
|
+
parent,
|
|
936
|
+
...props
|
|
937
|
+
}) {
|
|
938
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
939
|
+
type: 'ExportSpecifier',
|
|
940
|
+
...props
|
|
941
|
+
});
|
|
1028
942
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1029
943
|
return node;
|
|
1030
944
|
}
|
|
1031
945
|
|
|
1032
|
-
function ExpressionStatement(
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
type: 'ExpressionStatement'
|
|
1038
|
-
|
|
946
|
+
function ExpressionStatement({
|
|
947
|
+
parent,
|
|
948
|
+
...props
|
|
949
|
+
}) {
|
|
950
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
951
|
+
type: 'ExpressionStatement',
|
|
952
|
+
...props
|
|
953
|
+
});
|
|
1039
954
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1040
955
|
return node;
|
|
1041
956
|
}
|
|
1042
957
|
|
|
1043
|
-
function ForInStatement(
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
type: 'ForInStatement'
|
|
1049
|
-
|
|
958
|
+
function ForInStatement({
|
|
959
|
+
parent,
|
|
960
|
+
...props
|
|
961
|
+
}) {
|
|
962
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
963
|
+
type: 'ForInStatement',
|
|
964
|
+
...props
|
|
965
|
+
});
|
|
1050
966
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1051
967
|
return node;
|
|
1052
968
|
}
|
|
1053
969
|
|
|
1054
|
-
function ForOfStatement(
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
type: 'ForOfStatement'
|
|
1060
|
-
|
|
970
|
+
function ForOfStatement({
|
|
971
|
+
parent,
|
|
972
|
+
...props
|
|
973
|
+
}) {
|
|
974
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
975
|
+
type: 'ForOfStatement',
|
|
976
|
+
...props
|
|
977
|
+
});
|
|
1061
978
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1062
979
|
return node;
|
|
1063
980
|
}
|
|
1064
981
|
|
|
1065
|
-
function ForStatement(
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
type: 'ForStatement'
|
|
1071
|
-
|
|
982
|
+
function ForStatement({
|
|
983
|
+
parent,
|
|
984
|
+
...props
|
|
985
|
+
}) {
|
|
986
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
987
|
+
type: 'ForStatement',
|
|
988
|
+
...props
|
|
989
|
+
});
|
|
1072
990
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1073
991
|
return node;
|
|
1074
992
|
}
|
|
1075
993
|
|
|
1076
|
-
function FunctionDeclaration(
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
type: 'FunctionDeclaration'
|
|
1082
|
-
|
|
994
|
+
function FunctionDeclaration({
|
|
995
|
+
parent,
|
|
996
|
+
...props
|
|
997
|
+
}) {
|
|
998
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
999
|
+
type: 'FunctionDeclaration',
|
|
1000
|
+
...props
|
|
1001
|
+
});
|
|
1083
1002
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1084
1003
|
return node;
|
|
1085
1004
|
}
|
|
1086
1005
|
|
|
1087
|
-
function FunctionExpression(
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
type: 'FunctionExpression'
|
|
1093
|
-
|
|
1006
|
+
function FunctionExpression({
|
|
1007
|
+
parent,
|
|
1008
|
+
...props
|
|
1009
|
+
}) {
|
|
1010
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1011
|
+
type: 'FunctionExpression',
|
|
1012
|
+
...props
|
|
1013
|
+
});
|
|
1094
1014
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1095
1015
|
return node;
|
|
1096
1016
|
}
|
|
1097
1017
|
|
|
1098
|
-
function FunctionTypeAnnotation(
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
type: 'FunctionTypeAnnotation'
|
|
1104
|
-
|
|
1018
|
+
function FunctionTypeAnnotation({
|
|
1019
|
+
parent,
|
|
1020
|
+
...props
|
|
1021
|
+
}) {
|
|
1022
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1023
|
+
type: 'FunctionTypeAnnotation',
|
|
1024
|
+
...props
|
|
1025
|
+
});
|
|
1105
1026
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1106
1027
|
return node;
|
|
1107
1028
|
}
|
|
1108
1029
|
|
|
1109
|
-
function FunctionTypeParam(
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
type: 'FunctionTypeParam'
|
|
1115
|
-
|
|
1030
|
+
function FunctionTypeParam({
|
|
1031
|
+
parent,
|
|
1032
|
+
...props
|
|
1033
|
+
}) {
|
|
1034
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1035
|
+
type: 'FunctionTypeParam',
|
|
1036
|
+
...props
|
|
1037
|
+
});
|
|
1116
1038
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1117
1039
|
return node;
|
|
1118
1040
|
}
|
|
1119
1041
|
|
|
1120
|
-
function GenericTypeAnnotation(
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
type: 'GenericTypeAnnotation'
|
|
1126
|
-
|
|
1042
|
+
function GenericTypeAnnotation({
|
|
1043
|
+
parent,
|
|
1044
|
+
...props
|
|
1045
|
+
}) {
|
|
1046
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1047
|
+
type: 'GenericTypeAnnotation',
|
|
1048
|
+
...props
|
|
1049
|
+
});
|
|
1127
1050
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1128
1051
|
return node;
|
|
1129
1052
|
}
|
|
1130
1053
|
|
|
1131
|
-
function IfStatement(
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
type: 'IfStatement'
|
|
1137
|
-
|
|
1054
|
+
function IfStatement({
|
|
1055
|
+
parent,
|
|
1056
|
+
...props
|
|
1057
|
+
}) {
|
|
1058
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1059
|
+
type: 'IfStatement',
|
|
1060
|
+
...props
|
|
1061
|
+
});
|
|
1138
1062
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1139
1063
|
return node;
|
|
1140
1064
|
}
|
|
1141
1065
|
|
|
1142
|
-
function ImportAttribute(
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
type: 'ImportAttribute'
|
|
1148
|
-
|
|
1066
|
+
function ImportAttribute({
|
|
1067
|
+
parent,
|
|
1068
|
+
...props
|
|
1069
|
+
}) {
|
|
1070
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1071
|
+
type: 'ImportAttribute',
|
|
1072
|
+
...props
|
|
1073
|
+
});
|
|
1149
1074
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1150
1075
|
return node;
|
|
1151
1076
|
}
|
|
1152
1077
|
|
|
1153
|
-
function ImportDeclaration(
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
type: 'ImportDeclaration'
|
|
1159
|
-
|
|
1078
|
+
function ImportDeclaration({
|
|
1079
|
+
parent,
|
|
1080
|
+
...props
|
|
1081
|
+
}) {
|
|
1082
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1083
|
+
type: 'ImportDeclaration',
|
|
1084
|
+
...props
|
|
1085
|
+
});
|
|
1160
1086
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1161
1087
|
return node;
|
|
1162
1088
|
}
|
|
1163
1089
|
|
|
1164
|
-
function ImportDefaultSpecifier(
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
type: 'ImportDefaultSpecifier'
|
|
1170
|
-
|
|
1090
|
+
function ImportDefaultSpecifier({
|
|
1091
|
+
parent,
|
|
1092
|
+
...props
|
|
1093
|
+
}) {
|
|
1094
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1095
|
+
type: 'ImportDefaultSpecifier',
|
|
1096
|
+
...props
|
|
1097
|
+
});
|
|
1171
1098
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1172
1099
|
return node;
|
|
1173
1100
|
}
|
|
1174
1101
|
|
|
1175
|
-
function ImportExpression(
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
type: 'ImportExpression'
|
|
1181
|
-
|
|
1102
|
+
function ImportExpression({
|
|
1103
|
+
parent,
|
|
1104
|
+
...props
|
|
1105
|
+
}) {
|
|
1106
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1107
|
+
type: 'ImportExpression',
|
|
1108
|
+
...props
|
|
1109
|
+
});
|
|
1182
1110
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1183
1111
|
return node;
|
|
1184
1112
|
}
|
|
1185
1113
|
|
|
1186
|
-
function ImportNamespaceSpecifier(
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
type: 'ImportNamespaceSpecifier'
|
|
1192
|
-
|
|
1114
|
+
function ImportNamespaceSpecifier({
|
|
1115
|
+
parent,
|
|
1116
|
+
...props
|
|
1117
|
+
}) {
|
|
1118
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1119
|
+
type: 'ImportNamespaceSpecifier',
|
|
1120
|
+
...props
|
|
1121
|
+
});
|
|
1193
1122
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1194
1123
|
return node;
|
|
1195
1124
|
}
|
|
1196
1125
|
|
|
1197
|
-
function ImportSpecifier(
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
type: 'ImportSpecifier'
|
|
1203
|
-
|
|
1126
|
+
function ImportSpecifier({
|
|
1127
|
+
parent,
|
|
1128
|
+
...props
|
|
1129
|
+
}) {
|
|
1130
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1131
|
+
type: 'ImportSpecifier',
|
|
1132
|
+
...props
|
|
1133
|
+
});
|
|
1204
1134
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1205
1135
|
return node;
|
|
1206
1136
|
}
|
|
1207
1137
|
|
|
1208
|
-
function IndexedAccessType(
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
type: 'IndexedAccessType'
|
|
1214
|
-
|
|
1138
|
+
function IndexedAccessType({
|
|
1139
|
+
parent,
|
|
1140
|
+
...props
|
|
1141
|
+
}) {
|
|
1142
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1143
|
+
type: 'IndexedAccessType',
|
|
1144
|
+
...props
|
|
1145
|
+
});
|
|
1215
1146
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1216
1147
|
return node;
|
|
1217
1148
|
}
|
|
1218
1149
|
|
|
1219
|
-
function InferredPredicate(
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1150
|
+
function InferredPredicate({
|
|
1151
|
+
parent
|
|
1152
|
+
} = {}) {
|
|
1223
1153
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1224
1154
|
type: 'InferredPredicate'
|
|
1225
1155
|
});
|
|
1226
1156
|
}
|
|
1227
1157
|
|
|
1228
|
-
function InterfaceDeclaration(
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
type: 'InterfaceDeclaration'
|
|
1234
|
-
|
|
1158
|
+
function InterfaceDeclaration({
|
|
1159
|
+
parent,
|
|
1160
|
+
...props
|
|
1161
|
+
}) {
|
|
1162
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1163
|
+
type: 'InterfaceDeclaration',
|
|
1164
|
+
...props
|
|
1165
|
+
});
|
|
1235
1166
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1236
1167
|
return node;
|
|
1237
1168
|
}
|
|
1238
1169
|
|
|
1239
|
-
function InterfaceExtends(
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
type: 'InterfaceExtends'
|
|
1245
|
-
|
|
1170
|
+
function InterfaceExtends({
|
|
1171
|
+
parent,
|
|
1172
|
+
...props
|
|
1173
|
+
}) {
|
|
1174
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1175
|
+
type: 'InterfaceExtends',
|
|
1176
|
+
...props
|
|
1177
|
+
});
|
|
1246
1178
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1247
1179
|
return node;
|
|
1248
1180
|
}
|
|
1249
1181
|
|
|
1250
|
-
function InterfaceTypeAnnotation(
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
type: 'InterfaceTypeAnnotation'
|
|
1256
|
-
|
|
1182
|
+
function InterfaceTypeAnnotation({
|
|
1183
|
+
parent,
|
|
1184
|
+
...props
|
|
1185
|
+
}) {
|
|
1186
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1187
|
+
type: 'InterfaceTypeAnnotation',
|
|
1188
|
+
...props
|
|
1189
|
+
});
|
|
1257
1190
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1258
1191
|
return node;
|
|
1259
1192
|
}
|
|
1260
1193
|
|
|
1261
|
-
function IntersectionTypeAnnotation(
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
type: 'IntersectionTypeAnnotation'
|
|
1267
|
-
|
|
1194
|
+
function IntersectionTypeAnnotation({
|
|
1195
|
+
parent,
|
|
1196
|
+
...props
|
|
1197
|
+
}) {
|
|
1198
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1199
|
+
type: 'IntersectionTypeAnnotation',
|
|
1200
|
+
...props
|
|
1201
|
+
});
|
|
1268
1202
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1269
1203
|
return node;
|
|
1270
1204
|
}
|
|
1271
1205
|
|
|
1272
|
-
function JSXAttribute(
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
type: 'JSXAttribute'
|
|
1278
|
-
|
|
1206
|
+
function JSXAttribute({
|
|
1207
|
+
parent,
|
|
1208
|
+
...props
|
|
1209
|
+
}) {
|
|
1210
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1211
|
+
type: 'JSXAttribute',
|
|
1212
|
+
...props
|
|
1213
|
+
});
|
|
1279
1214
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1280
1215
|
return node;
|
|
1281
1216
|
}
|
|
1282
1217
|
|
|
1283
|
-
function JSXClosingElement(
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
type: 'JSXClosingElement'
|
|
1289
|
-
|
|
1218
|
+
function JSXClosingElement({
|
|
1219
|
+
parent,
|
|
1220
|
+
...props
|
|
1221
|
+
}) {
|
|
1222
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1223
|
+
type: 'JSXClosingElement',
|
|
1224
|
+
...props
|
|
1225
|
+
});
|
|
1290
1226
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1291
1227
|
return node;
|
|
1292
1228
|
}
|
|
1293
1229
|
|
|
1294
|
-
function JSXClosingFragment(
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1230
|
+
function JSXClosingFragment({
|
|
1231
|
+
parent
|
|
1232
|
+
} = {}) {
|
|
1298
1233
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1299
1234
|
type: 'JSXClosingFragment'
|
|
1300
1235
|
});
|
|
1301
1236
|
}
|
|
1302
1237
|
|
|
1303
|
-
function JSXElement(
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
type: 'JSXElement'
|
|
1309
|
-
|
|
1238
|
+
function JSXElement({
|
|
1239
|
+
parent,
|
|
1240
|
+
...props
|
|
1241
|
+
}) {
|
|
1242
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1243
|
+
type: 'JSXElement',
|
|
1244
|
+
...props
|
|
1245
|
+
});
|
|
1310
1246
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1311
1247
|
return node;
|
|
1312
1248
|
}
|
|
1313
1249
|
|
|
1314
|
-
function JSXEmptyExpression(
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1250
|
+
function JSXEmptyExpression({
|
|
1251
|
+
parent
|
|
1252
|
+
} = {}) {
|
|
1318
1253
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1319
1254
|
type: 'JSXEmptyExpression'
|
|
1320
1255
|
});
|
|
1321
1256
|
}
|
|
1322
1257
|
|
|
1323
|
-
function JSXExpressionContainer(
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
type: 'JSXExpressionContainer'
|
|
1329
|
-
|
|
1258
|
+
function JSXExpressionContainer({
|
|
1259
|
+
parent,
|
|
1260
|
+
...props
|
|
1261
|
+
}) {
|
|
1262
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1263
|
+
type: 'JSXExpressionContainer',
|
|
1264
|
+
...props
|
|
1265
|
+
});
|
|
1330
1266
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1331
1267
|
return node;
|
|
1332
1268
|
}
|
|
1333
1269
|
|
|
1334
|
-
function JSXFragment(
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
type: 'JSXFragment'
|
|
1340
|
-
|
|
1270
|
+
function JSXFragment({
|
|
1271
|
+
parent,
|
|
1272
|
+
...props
|
|
1273
|
+
}) {
|
|
1274
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1275
|
+
type: 'JSXFragment',
|
|
1276
|
+
...props
|
|
1277
|
+
});
|
|
1341
1278
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1342
1279
|
return node;
|
|
1343
1280
|
}
|
|
1344
1281
|
|
|
1345
|
-
function JSXIdentifier(
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
type: 'JSXIdentifier'
|
|
1351
|
-
|
|
1282
|
+
function JSXIdentifier({
|
|
1283
|
+
parent,
|
|
1284
|
+
...props
|
|
1285
|
+
}) {
|
|
1286
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1287
|
+
type: 'JSXIdentifier',
|
|
1288
|
+
...props
|
|
1289
|
+
});
|
|
1352
1290
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1353
1291
|
return node;
|
|
1354
1292
|
}
|
|
1355
1293
|
|
|
1356
|
-
function JSXMemberExpression(
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
type: 'JSXMemberExpression'
|
|
1362
|
-
|
|
1294
|
+
function JSXMemberExpression({
|
|
1295
|
+
parent,
|
|
1296
|
+
...props
|
|
1297
|
+
}) {
|
|
1298
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1299
|
+
type: 'JSXMemberExpression',
|
|
1300
|
+
...props
|
|
1301
|
+
});
|
|
1363
1302
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1364
1303
|
return node;
|
|
1365
1304
|
}
|
|
1366
1305
|
|
|
1367
|
-
function JSXNamespacedName(
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
type: 'JSXNamespacedName'
|
|
1373
|
-
|
|
1306
|
+
function JSXNamespacedName({
|
|
1307
|
+
parent,
|
|
1308
|
+
...props
|
|
1309
|
+
}) {
|
|
1310
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1311
|
+
type: 'JSXNamespacedName',
|
|
1312
|
+
...props
|
|
1313
|
+
});
|
|
1374
1314
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1375
1315
|
return node;
|
|
1376
1316
|
}
|
|
1377
1317
|
|
|
1378
|
-
function JSXOpeningElement(
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
type: 'JSXOpeningElement'
|
|
1384
|
-
|
|
1318
|
+
function JSXOpeningElement({
|
|
1319
|
+
parent,
|
|
1320
|
+
...props
|
|
1321
|
+
}) {
|
|
1322
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1323
|
+
type: 'JSXOpeningElement',
|
|
1324
|
+
...props
|
|
1325
|
+
});
|
|
1385
1326
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1386
1327
|
return node;
|
|
1387
1328
|
}
|
|
1388
1329
|
|
|
1389
|
-
function JSXOpeningFragment(
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1330
|
+
function JSXOpeningFragment({
|
|
1331
|
+
parent
|
|
1332
|
+
} = {}) {
|
|
1393
1333
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1394
1334
|
type: 'JSXOpeningFragment'
|
|
1395
1335
|
});
|
|
1396
1336
|
}
|
|
1397
1337
|
|
|
1398
|
-
function JSXSpreadAttribute(
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
type: 'JSXSpreadAttribute'
|
|
1404
|
-
|
|
1338
|
+
function JSXSpreadAttribute({
|
|
1339
|
+
parent,
|
|
1340
|
+
...props
|
|
1341
|
+
}) {
|
|
1342
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1343
|
+
type: 'JSXSpreadAttribute',
|
|
1344
|
+
...props
|
|
1345
|
+
});
|
|
1405
1346
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1406
1347
|
return node;
|
|
1407
1348
|
}
|
|
1408
1349
|
|
|
1409
|
-
function JSXSpreadChild(
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
type: 'JSXSpreadChild'
|
|
1415
|
-
|
|
1350
|
+
function JSXSpreadChild({
|
|
1351
|
+
parent,
|
|
1352
|
+
...props
|
|
1353
|
+
}) {
|
|
1354
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1355
|
+
type: 'JSXSpreadChild',
|
|
1356
|
+
...props
|
|
1357
|
+
});
|
|
1416
1358
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1417
1359
|
return node;
|
|
1418
1360
|
}
|
|
1419
1361
|
|
|
1420
|
-
function JSXText(
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
type: 'JSXText'
|
|
1426
|
-
|
|
1362
|
+
function JSXText({
|
|
1363
|
+
parent,
|
|
1364
|
+
...props
|
|
1365
|
+
}) {
|
|
1366
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1367
|
+
type: 'JSXText',
|
|
1368
|
+
...props
|
|
1369
|
+
});
|
|
1427
1370
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1428
1371
|
return node;
|
|
1429
1372
|
}
|
|
1430
1373
|
|
|
1431
|
-
function LabeledStatement(
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
type: 'LabeledStatement'
|
|
1437
|
-
|
|
1374
|
+
function LabeledStatement({
|
|
1375
|
+
parent,
|
|
1376
|
+
...props
|
|
1377
|
+
}) {
|
|
1378
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1379
|
+
type: 'LabeledStatement',
|
|
1380
|
+
...props
|
|
1381
|
+
});
|
|
1438
1382
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1439
1383
|
return node;
|
|
1440
1384
|
}
|
|
1441
1385
|
|
|
1442
|
-
function LogicalExpression(
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
type: 'LogicalExpression'
|
|
1448
|
-
|
|
1386
|
+
function LogicalExpression({
|
|
1387
|
+
parent,
|
|
1388
|
+
...props
|
|
1389
|
+
}) {
|
|
1390
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1391
|
+
type: 'LogicalExpression',
|
|
1392
|
+
...props
|
|
1393
|
+
});
|
|
1449
1394
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1450
1395
|
return node;
|
|
1451
1396
|
}
|
|
1452
1397
|
|
|
1453
|
-
function MemberExpression(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
type: 'MemberExpression'
|
|
1459
|
-
|
|
1398
|
+
function MemberExpression({
|
|
1399
|
+
parent,
|
|
1400
|
+
...props
|
|
1401
|
+
}) {
|
|
1402
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1403
|
+
type: 'MemberExpression',
|
|
1404
|
+
...props
|
|
1405
|
+
});
|
|
1460
1406
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1461
1407
|
return node;
|
|
1462
1408
|
}
|
|
1463
1409
|
|
|
1464
|
-
function MetaProperty(
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
type: 'MetaProperty'
|
|
1470
|
-
|
|
1410
|
+
function MetaProperty({
|
|
1411
|
+
parent,
|
|
1412
|
+
...props
|
|
1413
|
+
}) {
|
|
1414
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1415
|
+
type: 'MetaProperty',
|
|
1416
|
+
...props
|
|
1417
|
+
});
|
|
1471
1418
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1472
1419
|
return node;
|
|
1473
1420
|
}
|
|
1474
1421
|
|
|
1475
|
-
function MethodDefinition(
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
type: 'MethodDefinition'
|
|
1481
|
-
|
|
1422
|
+
function MethodDefinition({
|
|
1423
|
+
parent,
|
|
1424
|
+
...props
|
|
1425
|
+
}) {
|
|
1426
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1427
|
+
type: 'MethodDefinition',
|
|
1428
|
+
...props
|
|
1429
|
+
});
|
|
1482
1430
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1483
1431
|
return node;
|
|
1484
1432
|
}
|
|
1485
1433
|
|
|
1486
|
-
function MixedTypeAnnotation(
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1434
|
+
function MixedTypeAnnotation({
|
|
1435
|
+
parent
|
|
1436
|
+
} = {}) {
|
|
1490
1437
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1491
1438
|
type: 'MixedTypeAnnotation'
|
|
1492
1439
|
});
|
|
1493
1440
|
}
|
|
1494
1441
|
|
|
1495
|
-
function NewExpression(
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
type: 'NewExpression'
|
|
1501
|
-
|
|
1442
|
+
function NewExpression({
|
|
1443
|
+
parent,
|
|
1444
|
+
...props
|
|
1445
|
+
}) {
|
|
1446
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1447
|
+
type: 'NewExpression',
|
|
1448
|
+
...props
|
|
1449
|
+
});
|
|
1502
1450
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1503
1451
|
return node;
|
|
1504
1452
|
}
|
|
1505
1453
|
|
|
1506
|
-
function NullableTypeAnnotation(
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
type: 'NullableTypeAnnotation'
|
|
1512
|
-
|
|
1454
|
+
function NullableTypeAnnotation({
|
|
1455
|
+
parent,
|
|
1456
|
+
...props
|
|
1457
|
+
}) {
|
|
1458
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1459
|
+
type: 'NullableTypeAnnotation',
|
|
1460
|
+
...props
|
|
1461
|
+
});
|
|
1513
1462
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1514
1463
|
return node;
|
|
1515
1464
|
}
|
|
1516
1465
|
|
|
1517
|
-
function NullLiteralTypeAnnotation(
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1466
|
+
function NullLiteralTypeAnnotation({
|
|
1467
|
+
parent
|
|
1468
|
+
} = {}) {
|
|
1521
1469
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1522
1470
|
type: 'NullLiteralTypeAnnotation'
|
|
1523
1471
|
});
|
|
1524
1472
|
}
|
|
1525
1473
|
|
|
1526
|
-
function NumberLiteralTypeAnnotation(
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
type: 'NumberLiteralTypeAnnotation'
|
|
1532
|
-
|
|
1474
|
+
function NumberLiteralTypeAnnotation({
|
|
1475
|
+
parent,
|
|
1476
|
+
...props
|
|
1477
|
+
}) {
|
|
1478
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1479
|
+
type: 'NumberLiteralTypeAnnotation',
|
|
1480
|
+
...props
|
|
1481
|
+
});
|
|
1533
1482
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1534
1483
|
return node;
|
|
1535
1484
|
}
|
|
1536
1485
|
|
|
1537
|
-
function NumberTypeAnnotation(
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1486
|
+
function NumberTypeAnnotation({
|
|
1487
|
+
parent
|
|
1488
|
+
} = {}) {
|
|
1541
1489
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1542
1490
|
type: 'NumberTypeAnnotation'
|
|
1543
1491
|
});
|
|
1544
1492
|
}
|
|
1545
1493
|
|
|
1546
|
-
function ObjectExpression(
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
type: 'ObjectExpression'
|
|
1552
|
-
|
|
1494
|
+
function ObjectExpression({
|
|
1495
|
+
parent,
|
|
1496
|
+
...props
|
|
1497
|
+
}) {
|
|
1498
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1499
|
+
type: 'ObjectExpression',
|
|
1500
|
+
...props
|
|
1501
|
+
});
|
|
1553
1502
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1554
1503
|
return node;
|
|
1555
1504
|
}
|
|
1556
1505
|
|
|
1557
|
-
function ObjectPattern(
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
type: 'ObjectPattern'
|
|
1563
|
-
|
|
1506
|
+
function ObjectPattern({
|
|
1507
|
+
parent,
|
|
1508
|
+
...props
|
|
1509
|
+
}) {
|
|
1510
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1511
|
+
type: 'ObjectPattern',
|
|
1512
|
+
...props
|
|
1513
|
+
});
|
|
1564
1514
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1565
1515
|
return node;
|
|
1566
1516
|
}
|
|
1567
1517
|
|
|
1568
|
-
function ObjectTypeAnnotation(
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
type: 'ObjectTypeAnnotation'
|
|
1574
|
-
|
|
1518
|
+
function ObjectTypeAnnotation({
|
|
1519
|
+
parent,
|
|
1520
|
+
...props
|
|
1521
|
+
}) {
|
|
1522
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1523
|
+
type: 'ObjectTypeAnnotation',
|
|
1524
|
+
...props
|
|
1525
|
+
});
|
|
1575
1526
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1576
1527
|
return node;
|
|
1577
1528
|
}
|
|
1578
1529
|
|
|
1579
|
-
function ObjectTypeCallProperty(
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
type: 'ObjectTypeCallProperty'
|
|
1585
|
-
|
|
1530
|
+
function ObjectTypeCallProperty({
|
|
1531
|
+
parent,
|
|
1532
|
+
...props
|
|
1533
|
+
}) {
|
|
1534
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1535
|
+
type: 'ObjectTypeCallProperty',
|
|
1536
|
+
...props
|
|
1537
|
+
});
|
|
1586
1538
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1587
1539
|
return node;
|
|
1588
1540
|
}
|
|
1589
1541
|
|
|
1590
|
-
function ObjectTypeIndexer(
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
type: 'ObjectTypeIndexer'
|
|
1596
|
-
|
|
1542
|
+
function ObjectTypeIndexer({
|
|
1543
|
+
parent,
|
|
1544
|
+
...props
|
|
1545
|
+
}) {
|
|
1546
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1547
|
+
type: 'ObjectTypeIndexer',
|
|
1548
|
+
...props
|
|
1549
|
+
});
|
|
1597
1550
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1598
1551
|
return node;
|
|
1599
1552
|
}
|
|
1600
1553
|
|
|
1601
|
-
function ObjectTypeInternalSlot(
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
type: 'ObjectTypeInternalSlot'
|
|
1607
|
-
|
|
1554
|
+
function ObjectTypeInternalSlot({
|
|
1555
|
+
parent,
|
|
1556
|
+
...props
|
|
1557
|
+
}) {
|
|
1558
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1559
|
+
type: 'ObjectTypeInternalSlot',
|
|
1560
|
+
...props
|
|
1561
|
+
});
|
|
1608
1562
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1609
1563
|
return node;
|
|
1610
1564
|
}
|
|
1611
1565
|
|
|
1612
|
-
function ObjectTypeProperty(
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
type: 'ObjectTypeProperty'
|
|
1618
|
-
|
|
1566
|
+
function ObjectTypeProperty({
|
|
1567
|
+
parent,
|
|
1568
|
+
...props
|
|
1569
|
+
}) {
|
|
1570
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1571
|
+
type: 'ObjectTypeProperty',
|
|
1572
|
+
...props
|
|
1573
|
+
});
|
|
1619
1574
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1620
1575
|
return node;
|
|
1621
1576
|
}
|
|
1622
1577
|
|
|
1623
|
-
function ObjectTypeSpreadProperty(
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
type: 'ObjectTypeSpreadProperty'
|
|
1629
|
-
|
|
1578
|
+
function ObjectTypeSpreadProperty({
|
|
1579
|
+
parent,
|
|
1580
|
+
...props
|
|
1581
|
+
}) {
|
|
1582
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1583
|
+
type: 'ObjectTypeSpreadProperty',
|
|
1584
|
+
...props
|
|
1585
|
+
});
|
|
1630
1586
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1631
1587
|
return node;
|
|
1632
1588
|
}
|
|
1633
1589
|
|
|
1634
|
-
function OpaqueType(
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
type: 'OpaqueType'
|
|
1640
|
-
|
|
1590
|
+
function OpaqueType({
|
|
1591
|
+
parent,
|
|
1592
|
+
...props
|
|
1593
|
+
}) {
|
|
1594
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1595
|
+
type: 'OpaqueType',
|
|
1596
|
+
...props
|
|
1597
|
+
});
|
|
1641
1598
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1642
1599
|
return node;
|
|
1643
1600
|
}
|
|
1644
1601
|
|
|
1645
|
-
function OptionalCallExpression(
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
type: 'OptionalCallExpression'
|
|
1651
|
-
|
|
1602
|
+
function OptionalCallExpression({
|
|
1603
|
+
parent,
|
|
1604
|
+
...props
|
|
1605
|
+
}) {
|
|
1606
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1607
|
+
type: 'OptionalCallExpression',
|
|
1608
|
+
...props
|
|
1609
|
+
});
|
|
1652
1610
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1653
1611
|
return node;
|
|
1654
1612
|
}
|
|
1655
1613
|
|
|
1656
|
-
function OptionalIndexedAccessType(
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
type: 'OptionalIndexedAccessType'
|
|
1662
|
-
|
|
1614
|
+
function OptionalIndexedAccessType({
|
|
1615
|
+
parent,
|
|
1616
|
+
...props
|
|
1617
|
+
}) {
|
|
1618
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1619
|
+
type: 'OptionalIndexedAccessType',
|
|
1620
|
+
...props
|
|
1621
|
+
});
|
|
1663
1622
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1664
1623
|
return node;
|
|
1665
1624
|
}
|
|
1666
1625
|
|
|
1667
|
-
function OptionalMemberExpression(
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
type: 'OptionalMemberExpression'
|
|
1673
|
-
|
|
1626
|
+
function OptionalMemberExpression({
|
|
1627
|
+
parent,
|
|
1628
|
+
...props
|
|
1629
|
+
}) {
|
|
1630
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1631
|
+
type: 'OptionalMemberExpression',
|
|
1632
|
+
...props
|
|
1633
|
+
});
|
|
1674
1634
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1675
1635
|
return node;
|
|
1676
1636
|
}
|
|
1677
1637
|
|
|
1678
|
-
function PrivateName(
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
type: 'PrivateName'
|
|
1684
|
-
|
|
1638
|
+
function PrivateName({
|
|
1639
|
+
parent,
|
|
1640
|
+
...props
|
|
1641
|
+
}) {
|
|
1642
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1643
|
+
type: 'PrivateName',
|
|
1644
|
+
...props
|
|
1645
|
+
});
|
|
1685
1646
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1686
1647
|
return node;
|
|
1687
1648
|
}
|
|
1688
1649
|
|
|
1689
|
-
function Property(
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
type: 'Property'
|
|
1695
|
-
|
|
1650
|
+
function Property({
|
|
1651
|
+
parent,
|
|
1652
|
+
...props
|
|
1653
|
+
}) {
|
|
1654
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1655
|
+
type: 'Property',
|
|
1656
|
+
...props
|
|
1657
|
+
});
|
|
1696
1658
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1697
1659
|
return node;
|
|
1698
1660
|
}
|
|
1699
1661
|
|
|
1700
|
-
function QualifiedTypeIdentifier(
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
type: 'QualifiedTypeIdentifier'
|
|
1706
|
-
|
|
1662
|
+
function QualifiedTypeIdentifier({
|
|
1663
|
+
parent,
|
|
1664
|
+
...props
|
|
1665
|
+
}) {
|
|
1666
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1667
|
+
type: 'QualifiedTypeIdentifier',
|
|
1668
|
+
...props
|
|
1669
|
+
});
|
|
1707
1670
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1708
1671
|
return node;
|
|
1709
1672
|
}
|
|
1710
1673
|
|
|
1711
|
-
function RestElement(
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
type: 'RestElement'
|
|
1717
|
-
|
|
1674
|
+
function RestElement({
|
|
1675
|
+
parent,
|
|
1676
|
+
...props
|
|
1677
|
+
}) {
|
|
1678
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1679
|
+
type: 'RestElement',
|
|
1680
|
+
...props
|
|
1681
|
+
});
|
|
1718
1682
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1719
1683
|
return node;
|
|
1720
1684
|
}
|
|
1721
1685
|
|
|
1722
|
-
function ReturnStatement(
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
type: 'ReturnStatement'
|
|
1728
|
-
|
|
1686
|
+
function ReturnStatement({
|
|
1687
|
+
parent,
|
|
1688
|
+
...props
|
|
1689
|
+
}) {
|
|
1690
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1691
|
+
type: 'ReturnStatement',
|
|
1692
|
+
...props
|
|
1693
|
+
});
|
|
1729
1694
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1730
1695
|
return node;
|
|
1731
1696
|
}
|
|
1732
1697
|
|
|
1733
|
-
function SequenceExpression(
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
type: 'SequenceExpression'
|
|
1739
|
-
|
|
1698
|
+
function SequenceExpression({
|
|
1699
|
+
parent,
|
|
1700
|
+
...props
|
|
1701
|
+
}) {
|
|
1702
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1703
|
+
type: 'SequenceExpression',
|
|
1704
|
+
...props
|
|
1705
|
+
});
|
|
1740
1706
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1741
1707
|
return node;
|
|
1742
1708
|
}
|
|
1743
1709
|
|
|
1744
|
-
function SpreadElement(
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
type: 'SpreadElement'
|
|
1750
|
-
|
|
1710
|
+
function SpreadElement({
|
|
1711
|
+
parent,
|
|
1712
|
+
...props
|
|
1713
|
+
}) {
|
|
1714
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1715
|
+
type: 'SpreadElement',
|
|
1716
|
+
...props
|
|
1717
|
+
});
|
|
1751
1718
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1752
1719
|
return node;
|
|
1753
1720
|
}
|
|
1754
1721
|
|
|
1755
|
-
function StringLiteralTypeAnnotation(
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
type: 'StringLiteralTypeAnnotation'
|
|
1761
|
-
|
|
1722
|
+
function StringLiteralTypeAnnotation({
|
|
1723
|
+
parent,
|
|
1724
|
+
...props
|
|
1725
|
+
}) {
|
|
1726
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1727
|
+
type: 'StringLiteralTypeAnnotation',
|
|
1728
|
+
...props
|
|
1729
|
+
});
|
|
1762
1730
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1763
1731
|
return node;
|
|
1764
1732
|
}
|
|
1765
1733
|
|
|
1766
|
-
function StringTypeAnnotation(
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1734
|
+
function StringTypeAnnotation({
|
|
1735
|
+
parent
|
|
1736
|
+
} = {}) {
|
|
1770
1737
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1771
1738
|
type: 'StringTypeAnnotation'
|
|
1772
1739
|
});
|
|
1773
1740
|
}
|
|
1774
1741
|
|
|
1775
|
-
function Super(
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1742
|
+
function Super({
|
|
1743
|
+
parent
|
|
1744
|
+
} = {}) {
|
|
1779
1745
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1780
1746
|
type: 'Super'
|
|
1781
1747
|
});
|
|
1782
1748
|
}
|
|
1783
1749
|
|
|
1784
|
-
function SwitchCase(
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
type: 'SwitchCase'
|
|
1790
|
-
|
|
1750
|
+
function SwitchCase({
|
|
1751
|
+
parent,
|
|
1752
|
+
...props
|
|
1753
|
+
}) {
|
|
1754
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1755
|
+
type: 'SwitchCase',
|
|
1756
|
+
...props
|
|
1757
|
+
});
|
|
1791
1758
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1792
1759
|
return node;
|
|
1793
1760
|
}
|
|
1794
1761
|
|
|
1795
|
-
function SwitchStatement(
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
type: 'SwitchStatement'
|
|
1801
|
-
|
|
1762
|
+
function SwitchStatement({
|
|
1763
|
+
parent,
|
|
1764
|
+
...props
|
|
1765
|
+
}) {
|
|
1766
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1767
|
+
type: 'SwitchStatement',
|
|
1768
|
+
...props
|
|
1769
|
+
});
|
|
1802
1770
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1803
1771
|
return node;
|
|
1804
1772
|
}
|
|
1805
1773
|
|
|
1806
|
-
function SymbolTypeAnnotation(
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1774
|
+
function SymbolTypeAnnotation({
|
|
1775
|
+
parent
|
|
1776
|
+
} = {}) {
|
|
1810
1777
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1811
1778
|
type: 'SymbolTypeAnnotation'
|
|
1812
1779
|
});
|
|
1813
1780
|
}
|
|
1814
1781
|
|
|
1815
|
-
function TaggedTemplateExpression(
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
type: 'TaggedTemplateExpression'
|
|
1821
|
-
|
|
1782
|
+
function TaggedTemplateExpression({
|
|
1783
|
+
parent,
|
|
1784
|
+
...props
|
|
1785
|
+
}) {
|
|
1786
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1787
|
+
type: 'TaggedTemplateExpression',
|
|
1788
|
+
...props
|
|
1789
|
+
});
|
|
1822
1790
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1823
1791
|
return node;
|
|
1824
1792
|
}
|
|
1825
1793
|
|
|
1826
|
-
function TemplateLiteral(
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
type: 'TemplateLiteral'
|
|
1832
|
-
|
|
1794
|
+
function TemplateLiteral({
|
|
1795
|
+
parent,
|
|
1796
|
+
...props
|
|
1797
|
+
}) {
|
|
1798
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1799
|
+
type: 'TemplateLiteral',
|
|
1800
|
+
...props
|
|
1801
|
+
});
|
|
1833
1802
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1834
1803
|
return node;
|
|
1835
1804
|
}
|
|
1836
1805
|
|
|
1837
|
-
function ThisExpression(
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1806
|
+
function ThisExpression({
|
|
1807
|
+
parent
|
|
1808
|
+
} = {}) {
|
|
1841
1809
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1842
1810
|
type: 'ThisExpression'
|
|
1843
1811
|
});
|
|
1844
1812
|
}
|
|
1845
1813
|
|
|
1846
|
-
function ThisTypeAnnotation(
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1814
|
+
function ThisTypeAnnotation({
|
|
1815
|
+
parent
|
|
1816
|
+
} = {}) {
|
|
1850
1817
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
1851
1818
|
type: 'ThisTypeAnnotation'
|
|
1852
1819
|
});
|
|
1853
1820
|
}
|
|
1854
1821
|
|
|
1855
|
-
function ThrowStatement(
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
type: 'ThrowStatement'
|
|
1861
|
-
|
|
1822
|
+
function ThrowStatement({
|
|
1823
|
+
parent,
|
|
1824
|
+
...props
|
|
1825
|
+
}) {
|
|
1826
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1827
|
+
type: 'ThrowStatement',
|
|
1828
|
+
...props
|
|
1829
|
+
});
|
|
1862
1830
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1863
1831
|
return node;
|
|
1864
1832
|
}
|
|
1865
1833
|
|
|
1866
|
-
function TryStatement(
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
type: 'TryStatement'
|
|
1872
|
-
|
|
1834
|
+
function TryStatement({
|
|
1835
|
+
parent,
|
|
1836
|
+
...props
|
|
1837
|
+
}) {
|
|
1838
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1839
|
+
type: 'TryStatement',
|
|
1840
|
+
...props
|
|
1841
|
+
});
|
|
1873
1842
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1874
1843
|
return node;
|
|
1875
1844
|
}
|
|
1876
1845
|
|
|
1877
|
-
function TupleTypeAnnotation(
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
type: 'TupleTypeAnnotation'
|
|
1883
|
-
|
|
1846
|
+
function TupleTypeAnnotation({
|
|
1847
|
+
parent,
|
|
1848
|
+
...props
|
|
1849
|
+
}) {
|
|
1850
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1851
|
+
type: 'TupleTypeAnnotation',
|
|
1852
|
+
...props
|
|
1853
|
+
});
|
|
1884
1854
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1885
1855
|
return node;
|
|
1886
1856
|
}
|
|
1887
1857
|
|
|
1888
|
-
function TypeAlias(
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
type: 'TypeAlias'
|
|
1894
|
-
|
|
1858
|
+
function TypeAlias({
|
|
1859
|
+
parent,
|
|
1860
|
+
...props
|
|
1861
|
+
}) {
|
|
1862
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1863
|
+
type: 'TypeAlias',
|
|
1864
|
+
...props
|
|
1865
|
+
});
|
|
1895
1866
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1896
1867
|
return node;
|
|
1897
1868
|
}
|
|
1898
1869
|
|
|
1899
|
-
function TypeAnnotation(
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
type: 'TypeAnnotation'
|
|
1905
|
-
|
|
1870
|
+
function TypeAnnotation({
|
|
1871
|
+
parent,
|
|
1872
|
+
...props
|
|
1873
|
+
}) {
|
|
1874
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1875
|
+
type: 'TypeAnnotation',
|
|
1876
|
+
...props
|
|
1877
|
+
});
|
|
1906
1878
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1907
1879
|
return node;
|
|
1908
1880
|
}
|
|
1909
1881
|
|
|
1910
|
-
function TypeCastExpression(
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
type: 'TypeCastExpression'
|
|
1916
|
-
|
|
1882
|
+
function TypeCastExpression({
|
|
1883
|
+
parent,
|
|
1884
|
+
...props
|
|
1885
|
+
}) {
|
|
1886
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1887
|
+
type: 'TypeCastExpression',
|
|
1888
|
+
...props
|
|
1889
|
+
});
|
|
1917
1890
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1918
1891
|
return node;
|
|
1919
1892
|
}
|
|
1920
1893
|
|
|
1921
|
-
function TypeofTypeAnnotation(
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
type: 'TypeofTypeAnnotation'
|
|
1927
|
-
|
|
1894
|
+
function TypeofTypeAnnotation({
|
|
1895
|
+
parent,
|
|
1896
|
+
...props
|
|
1897
|
+
}) {
|
|
1898
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1899
|
+
type: 'TypeofTypeAnnotation',
|
|
1900
|
+
...props
|
|
1901
|
+
});
|
|
1928
1902
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1929
1903
|
return node;
|
|
1930
1904
|
}
|
|
1931
1905
|
|
|
1932
|
-
function TypeParameter(
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
type: 'TypeParameter'
|
|
1938
|
-
|
|
1906
|
+
function TypeParameter({
|
|
1907
|
+
parent,
|
|
1908
|
+
...props
|
|
1909
|
+
}) {
|
|
1910
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1911
|
+
type: 'TypeParameter',
|
|
1912
|
+
...props
|
|
1913
|
+
});
|
|
1939
1914
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1940
1915
|
return node;
|
|
1941
1916
|
}
|
|
1942
1917
|
|
|
1943
|
-
function TypeParameterDeclaration(
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
type: 'TypeParameterDeclaration'
|
|
1949
|
-
|
|
1918
|
+
function TypeParameterDeclaration({
|
|
1919
|
+
parent,
|
|
1920
|
+
...props
|
|
1921
|
+
}) {
|
|
1922
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1923
|
+
type: 'TypeParameterDeclaration',
|
|
1924
|
+
...props
|
|
1925
|
+
});
|
|
1950
1926
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1951
1927
|
return node;
|
|
1952
1928
|
}
|
|
1953
1929
|
|
|
1954
|
-
function TypeParameterInstantiation(
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
type: 'TypeParameterInstantiation'
|
|
1960
|
-
|
|
1930
|
+
function TypeParameterInstantiation({
|
|
1931
|
+
parent,
|
|
1932
|
+
...props
|
|
1933
|
+
}) {
|
|
1934
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1935
|
+
type: 'TypeParameterInstantiation',
|
|
1936
|
+
...props
|
|
1937
|
+
});
|
|
1961
1938
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1962
1939
|
return node;
|
|
1963
1940
|
}
|
|
1964
1941
|
|
|
1965
|
-
function UnaryExpression(
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
type: 'UnaryExpression'
|
|
1971
|
-
|
|
1942
|
+
function UnaryExpression({
|
|
1943
|
+
parent,
|
|
1944
|
+
...props
|
|
1945
|
+
}) {
|
|
1946
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1947
|
+
type: 'UnaryExpression',
|
|
1948
|
+
...props
|
|
1949
|
+
});
|
|
1972
1950
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1973
1951
|
return node;
|
|
1974
1952
|
}
|
|
1975
1953
|
|
|
1976
|
-
function UnionTypeAnnotation(
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
type: 'UnionTypeAnnotation'
|
|
1982
|
-
|
|
1954
|
+
function UnionTypeAnnotation({
|
|
1955
|
+
parent,
|
|
1956
|
+
...props
|
|
1957
|
+
}) {
|
|
1958
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1959
|
+
type: 'UnionTypeAnnotation',
|
|
1960
|
+
...props
|
|
1961
|
+
});
|
|
1983
1962
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1984
1963
|
return node;
|
|
1985
1964
|
}
|
|
1986
1965
|
|
|
1987
|
-
function UpdateExpression(
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
type: 'UpdateExpression'
|
|
1993
|
-
|
|
1966
|
+
function UpdateExpression({
|
|
1967
|
+
parent,
|
|
1968
|
+
...props
|
|
1969
|
+
}) {
|
|
1970
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1971
|
+
type: 'UpdateExpression',
|
|
1972
|
+
...props
|
|
1973
|
+
});
|
|
1994
1974
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
1995
1975
|
return node;
|
|
1996
1976
|
}
|
|
1997
1977
|
|
|
1998
|
-
function VariableDeclaration(
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
type: 'VariableDeclaration'
|
|
2004
|
-
|
|
1978
|
+
function VariableDeclaration({
|
|
1979
|
+
parent,
|
|
1980
|
+
...props
|
|
1981
|
+
}) {
|
|
1982
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1983
|
+
type: 'VariableDeclaration',
|
|
1984
|
+
...props
|
|
1985
|
+
});
|
|
2005
1986
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
2006
1987
|
return node;
|
|
2007
1988
|
}
|
|
2008
1989
|
|
|
2009
|
-
function VariableDeclarator(
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
type: 'VariableDeclarator'
|
|
2015
|
-
|
|
1990
|
+
function VariableDeclarator({
|
|
1991
|
+
parent,
|
|
1992
|
+
...props
|
|
1993
|
+
}) {
|
|
1994
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
1995
|
+
type: 'VariableDeclarator',
|
|
1996
|
+
...props
|
|
1997
|
+
});
|
|
2016
1998
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
2017
1999
|
return node;
|
|
2018
2000
|
}
|
|
2019
2001
|
|
|
2020
|
-
function Variance(
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
type: 'Variance'
|
|
2026
|
-
|
|
2002
|
+
function Variance({
|
|
2003
|
+
parent,
|
|
2004
|
+
...props
|
|
2005
|
+
}) {
|
|
2006
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
2007
|
+
type: 'Variance',
|
|
2008
|
+
...props
|
|
2009
|
+
});
|
|
2027
2010
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
2028
2011
|
return node;
|
|
2029
2012
|
}
|
|
2030
2013
|
|
|
2031
|
-
function VoidTypeAnnotation(
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2014
|
+
function VoidTypeAnnotation({
|
|
2015
|
+
parent
|
|
2016
|
+
} = {}) {
|
|
2035
2017
|
return (0, _detachedNode.detachedProps)(parent, {
|
|
2036
2018
|
type: 'VoidTypeAnnotation'
|
|
2037
2019
|
});
|
|
2038
2020
|
}
|
|
2039
2021
|
|
|
2040
|
-
function WhileStatement(
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
type: 'WhileStatement'
|
|
2046
|
-
|
|
2022
|
+
function WhileStatement({
|
|
2023
|
+
parent,
|
|
2024
|
+
...props
|
|
2025
|
+
}) {
|
|
2026
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
2027
|
+
type: 'WhileStatement',
|
|
2028
|
+
...props
|
|
2029
|
+
});
|
|
2047
2030
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
2048
2031
|
return node;
|
|
2049
2032
|
}
|
|
2050
2033
|
|
|
2051
|
-
function WithStatement(
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
type: 'WithStatement'
|
|
2057
|
-
|
|
2034
|
+
function WithStatement({
|
|
2035
|
+
parent,
|
|
2036
|
+
...props
|
|
2037
|
+
}) {
|
|
2038
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
2039
|
+
type: 'WithStatement',
|
|
2040
|
+
...props
|
|
2041
|
+
});
|
|
2058
2042
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
2059
2043
|
return node;
|
|
2060
2044
|
}
|
|
2061
2045
|
|
|
2062
|
-
function YieldExpression(
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
type: 'YieldExpression'
|
|
2068
|
-
|
|
2046
|
+
function YieldExpression({
|
|
2047
|
+
parent,
|
|
2048
|
+
...props
|
|
2049
|
+
}) {
|
|
2050
|
+
const node = (0, _detachedNode.detachedProps)(parent, {
|
|
2051
|
+
type: 'YieldExpression',
|
|
2052
|
+
...props
|
|
2053
|
+
});
|
|
2069
2054
|
(0, _detachedNode.setParentPointersInDirectChildren)(node);
|
|
2070
2055
|
return node;
|
|
2071
2056
|
}
|