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