@babel/traverse 8.0.0-alpha.2 → 8.0.0-alpha.4
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/lib/index.js +136 -131
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
- package/lib/cache.js +0 -28
- package/lib/cache.js.map +0 -1
- package/lib/context.js +0 -108
- package/lib/context.js.map +0 -1
- package/lib/hub.js +0 -12
- package/lib/hub.js.map +0 -1
- package/lib/path/ancestry.js +0 -126
- package/lib/path/ancestry.js.map +0 -1
- package/lib/path/comments.js +0 -46
- package/lib/path/comments.js.map +0 -1
- package/lib/path/context.js +0 -194
- package/lib/path/context.js.map +0 -1
- package/lib/path/conversion.js +0 -453
- package/lib/path/conversion.js.map +0 -1
- package/lib/path/evaluation.js +0 -333
- package/lib/path/evaluation.js.map +0 -1
- package/lib/path/family.js +0 -322
- package/lib/path/family.js.map +0 -1
- package/lib/path/index.js +0 -181
- package/lib/path/index.js.map +0 -1
- package/lib/path/inference/index.js +0 -137
- package/lib/path/inference/index.js.map +0 -1
- package/lib/path/inference/inferer-reference.js +0 -145
- package/lib/path/inference/inferer-reference.js.map +0 -1
- package/lib/path/inference/inferers.js +0 -172
- package/lib/path/inference/inferers.js.map +0 -1
- package/lib/path/inference/util.js +0 -20
- package/lib/path/inference/util.js.map +0 -1
- package/lib/path/introspection.js +0 -360
- package/lib/path/introspection.js.map +0 -1
- package/lib/path/lib/hoister.js +0 -164
- package/lib/path/lib/hoister.js.map +0 -1
- package/lib/path/lib/removal-hooks.js +0 -31
- package/lib/path/lib/removal-hooks.js.map +0 -1
- package/lib/path/lib/virtual-types-validator.js +0 -133
- package/lib/path/lib/virtual-types-validator.js.map +0 -1
- package/lib/path/lib/virtual-types.js +0 -20
- package/lib/path/lib/virtual-types.js.map +0 -1
- package/lib/path/modification.js +0 -209
- package/lib/path/modification.js.map +0 -1
- package/lib/path/removal.js +0 -48
- package/lib/path/removal.js.map +0 -1
- package/lib/path/replacement.js +0 -192
- package/lib/path/replacement.js.map +0 -1
- package/lib/scope/binding.js +0 -78
- package/lib/scope/binding.js.map +0 -1
- package/lib/scope/index.js +0 -870
- package/lib/scope/index.js.map +0 -1
- package/lib/scope/lib/renamer.js +0 -105
- package/lib/scope/lib/renamer.js.map +0 -1
- package/lib/traverse-node.js +0 -23
- package/lib/traverse-node.js.map +0 -1
- package/lib/types.js +0 -3
- package/lib/types.js.map +0 -1
- package/lib/visitors.js +0 -210
- package/lib/visitors.js.map +0 -1
package/lib/index.js
CHANGED
@@ -30,24 +30,24 @@ const ForAwaitStatement = ["ForOfStatement"];
|
|
30
30
|
|
31
31
|
var virtualTypes = /*#__PURE__*/Object.freeze({
|
32
32
|
__proto__: null,
|
33
|
-
ReferencedIdentifier: ReferencedIdentifier,
|
34
|
-
ReferencedMemberExpression: ReferencedMemberExpression,
|
35
33
|
BindingIdentifier: BindingIdentifier,
|
36
|
-
Statement: Statement,
|
37
|
-
Expression: Expression,
|
38
|
-
Scope: Scope$1,
|
39
|
-
Referenced: Referenced,
|
40
34
|
BlockScoped: BlockScoped,
|
41
|
-
|
42
|
-
|
35
|
+
ExistentialTypeParam: ExistentialTypeParam,
|
36
|
+
Expression: Expression,
|
37
|
+
Flow: Flow,
|
38
|
+
ForAwaitStatement: ForAwaitStatement,
|
43
39
|
Generated: Generated,
|
40
|
+
NumericLiteralTypeAnnotation: NumericLiteralTypeAnnotation,
|
44
41
|
Pure: Pure,
|
45
|
-
|
42
|
+
Referenced: Referenced,
|
43
|
+
ReferencedIdentifier: ReferencedIdentifier,
|
44
|
+
ReferencedMemberExpression: ReferencedMemberExpression,
|
46
45
|
RestProperty: RestProperty,
|
46
|
+
Scope: Scope$1,
|
47
47
|
SpreadProperty: SpreadProperty,
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
Statement: Statement,
|
49
|
+
User: User,
|
50
|
+
Var: Var
|
51
51
|
});
|
52
52
|
|
53
53
|
const {
|
@@ -257,10 +257,10 @@ function mergePair(dest, src) {
|
|
257
257
|
|
258
258
|
var visitors = /*#__PURE__*/Object.freeze({
|
259
259
|
__proto__: null,
|
260
|
-
isExplodedVisitor: isExplodedVisitor,
|
261
260
|
explode: explode,
|
262
|
-
|
263
|
-
merge: merge
|
261
|
+
isExplodedVisitor: isExplodedVisitor,
|
262
|
+
merge: merge,
|
263
|
+
verify: verify
|
264
264
|
});
|
265
265
|
|
266
266
|
let pathsCache = new WeakMap();
|
@@ -289,13 +289,13 @@ function getOrCreateCachedPaths(hub, parent) {
|
|
289
289
|
|
290
290
|
var cache = /*#__PURE__*/Object.freeze({
|
291
291
|
__proto__: null,
|
292
|
-
get path () { return pathsCache; },
|
293
|
-
get scope () { return scope; },
|
294
292
|
clear: clear,
|
295
293
|
clearPath: clearPath,
|
296
294
|
clearScope: clearScope,
|
297
295
|
getCachedPaths: getCachedPaths,
|
298
|
-
getOrCreateCachedPaths: getOrCreateCachedPaths
|
296
|
+
getOrCreateCachedPaths: getOrCreateCachedPaths,
|
297
|
+
get path () { return pathsCache; },
|
298
|
+
get scope () { return scope; }
|
299
299
|
});
|
300
300
|
|
301
301
|
const renameVisitor = {
|
@@ -412,9 +412,7 @@ class Binding {
|
|
412
412
|
this.scope = scope;
|
413
413
|
this.path = path;
|
414
414
|
this.kind = kind;
|
415
|
-
if ((kind === "var" || kind === "hoisted") && isDeclaredInLoop(path
|
416
|
-
throw new Error("Internal Babel error: unreachable ");
|
417
|
-
})())) {
|
415
|
+
if ((kind === "var" || kind === "hoisted") && isDeclaredInLoop(path)) {
|
418
416
|
this.reassign(path);
|
419
417
|
}
|
420
418
|
this.clearValue();
|
@@ -509,7 +507,6 @@ const {
|
|
509
507
|
memberExpression: memberExpression$1,
|
510
508
|
numericLiteral: numericLiteral$2,
|
511
509
|
toIdentifier,
|
512
|
-
unaryExpression: unaryExpression$2,
|
513
510
|
variableDeclaration: variableDeclaration$1,
|
514
511
|
variableDeclarator: variableDeclarator$1,
|
515
512
|
isRecordExpression,
|
@@ -518,7 +515,8 @@ const {
|
|
518
515
|
isTopicReference,
|
519
516
|
isMetaProperty,
|
520
517
|
isPrivateName,
|
521
|
-
isExportDeclaration: isExportDeclaration$1
|
518
|
+
isExportDeclaration: isExportDeclaration$1,
|
519
|
+
buildUndefinedNode
|
522
520
|
} = _t;
|
523
521
|
function gatherNodeParts(node, parts) {
|
524
522
|
switch (node?.type) {
|
@@ -968,7 +966,7 @@ class Scope {
|
|
968
966
|
}
|
969
967
|
}
|
970
968
|
buildUndefinedNode() {
|
971
|
-
return
|
969
|
+
return buildUndefinedNode();
|
972
970
|
}
|
973
971
|
registerConstantViolation(path) {
|
974
972
|
const ids = path.getBindingIdentifiers();
|
@@ -1461,16 +1459,16 @@ function inType(...candidateTypes) {
|
|
1461
1459
|
|
1462
1460
|
var NodePath_ancestry = /*#__PURE__*/Object.freeze({
|
1463
1461
|
__proto__: null,
|
1464
|
-
findParent: findParent,
|
1465
1462
|
find: find,
|
1463
|
+
findParent: findParent,
|
1464
|
+
getAncestry: getAncestry,
|
1465
|
+
getDeepestCommonAncestorFrom: getDeepestCommonAncestorFrom,
|
1466
|
+
getEarliestCommonAncestorFrom: getEarliestCommonAncestorFrom,
|
1466
1467
|
getFunctionParent: getFunctionParent,
|
1467
1468
|
getStatementParent: getStatementParent,
|
1468
|
-
|
1469
|
-
getDeepestCommonAncestorFrom: getDeepestCommonAncestorFrom,
|
1470
|
-
getAncestry: getAncestry,
|
1469
|
+
inType: inType,
|
1471
1470
|
isAncestor: isAncestor,
|
1472
|
-
isDescendant: isDescendant
|
1473
|
-
inType: inType
|
1471
|
+
isDescendant: isDescendant
|
1474
1472
|
});
|
1475
1473
|
|
1476
1474
|
const {
|
@@ -1802,36 +1800,36 @@ function resolveCall(callee) {
|
|
1802
1800
|
|
1803
1801
|
var inferers = /*#__PURE__*/Object.freeze({
|
1804
1802
|
__proto__: null,
|
1805
|
-
|
1806
|
-
|
1807
|
-
TSAsExpression: TSAsExpression,
|
1808
|
-
TSNonNullExpression: TSNonNullExpression,
|
1809
|
-
NewExpression: NewExpression,
|
1810
|
-
TemplateLiteral: TemplateLiteral,
|
1811
|
-
UnaryExpression: UnaryExpression,
|
1812
|
-
BinaryExpression: BinaryExpression,
|
1813
|
-
LogicalExpression: LogicalExpression,
|
1814
|
-
ConditionalExpression: ConditionalExpression,
|
1815
|
-
SequenceExpression: SequenceExpression,
|
1816
|
-
ParenthesizedExpression: ParenthesizedExpression,
|
1803
|
+
ArrayExpression: ArrayExpression,
|
1804
|
+
ArrowFunctionExpression: Func,
|
1817
1805
|
AssignmentExpression: AssignmentExpression,
|
1818
|
-
|
1819
|
-
StringLiteral: StringLiteral,
|
1820
|
-
NumericLiteral: NumericLiteral,
|
1806
|
+
BinaryExpression: BinaryExpression,
|
1821
1807
|
BooleanLiteral: BooleanLiteral,
|
1808
|
+
CallExpression: CallExpression,
|
1809
|
+
ClassDeclaration: Func,
|
1810
|
+
ClassExpression: Func,
|
1811
|
+
ConditionalExpression: ConditionalExpression,
|
1812
|
+
FunctionDeclaration: Func,
|
1813
|
+
FunctionExpression: Func,
|
1814
|
+
Identifier: infererReference,
|
1815
|
+
LogicalExpression: LogicalExpression,
|
1816
|
+
NewExpression: NewExpression,
|
1822
1817
|
NullLiteral: NullLiteral,
|
1823
|
-
|
1818
|
+
NumericLiteral: NumericLiteral,
|
1824
1819
|
ObjectExpression: ObjectExpression,
|
1825
|
-
|
1820
|
+
ParenthesizedExpression: ParenthesizedExpression,
|
1821
|
+
RegExpLiteral: RegExpLiteral,
|
1826
1822
|
RestElement: RestElement,
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
ClassDeclaration: Func,
|
1832
|
-
CallExpression: CallExpression,
|
1823
|
+
SequenceExpression: SequenceExpression,
|
1824
|
+
StringLiteral: StringLiteral,
|
1825
|
+
TSAsExpression: TSAsExpression,
|
1826
|
+
TSNonNullExpression: TSNonNullExpression,
|
1833
1827
|
TaggedTemplateExpression: TaggedTemplateExpression,
|
1834
|
-
|
1828
|
+
TemplateLiteral: TemplateLiteral,
|
1829
|
+
TypeCastExpression: TypeCastExpression,
|
1830
|
+
UnaryExpression: UnaryExpression,
|
1831
|
+
UpdateExpression: UpdateExpression,
|
1832
|
+
VariableDeclarator: VariableDeclarator
|
1835
1833
|
});
|
1836
1834
|
|
1837
1835
|
const {
|
@@ -1970,11 +1968,11 @@ function isGenericType(genericName) {
|
|
1970
1968
|
|
1971
1969
|
var NodePath_inference = /*#__PURE__*/Object.freeze({
|
1972
1970
|
__proto__: null,
|
1973
|
-
getTypeAnnotation: getTypeAnnotation,
|
1974
1971
|
_getTypeAnnotation: _getTypeAnnotation,
|
1975
|
-
isBaseType: isBaseType,
|
1976
|
-
couldBeBaseType: couldBeBaseType,
|
1977
1972
|
baseTypeStrictlyMatches: baseTypeStrictlyMatches,
|
1973
|
+
couldBeBaseType: couldBeBaseType,
|
1974
|
+
getTypeAnnotation: getTypeAnnotation,
|
1975
|
+
isBaseType: isBaseType,
|
1978
1976
|
isGenericType: isGenericType
|
1979
1977
|
});
|
1980
1978
|
|
@@ -2164,18 +2162,22 @@ function replaceInline(nodes) {
|
|
2164
2162
|
|
2165
2163
|
var NodePath_replacement = /*#__PURE__*/Object.freeze({
|
2166
2164
|
__proto__: null,
|
2167
|
-
replaceWithMultiple: replaceWithMultiple,
|
2168
|
-
replaceWithSourceString: replaceWithSourceString,
|
2169
|
-
replaceWith: replaceWith,
|
2170
2165
|
_replaceWith: _replaceWith,
|
2171
2166
|
replaceExpressionWithStatements: replaceExpressionWithStatements,
|
2172
|
-
replaceInline: replaceInline
|
2167
|
+
replaceInline: replaceInline,
|
2168
|
+
replaceWith: replaceWith,
|
2169
|
+
replaceWithMultiple: replaceWithMultiple,
|
2170
|
+
replaceWithSourceString: replaceWithSourceString
|
2173
2171
|
});
|
2174
2172
|
|
2175
|
-
const
|
2173
|
+
const VALID_OBJECT_CALLEES = ["Number", "String", "Math"];
|
2174
|
+
const VALID_IDENTIFIER_CALLEES = ["isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "btoa", "atob"];
|
2176
2175
|
const INVALID_METHODS = ["random"];
|
2177
|
-
function
|
2178
|
-
return
|
2176
|
+
function isValidObjectCallee(val) {
|
2177
|
+
return VALID_OBJECT_CALLEES.includes(val);
|
2178
|
+
}
|
2179
|
+
function isValidIdentifierCallee(val) {
|
2180
|
+
return VALID_IDENTIFIER_CALLEES.includes(val);
|
2179
2181
|
}
|
2180
2182
|
function isInvalidMethod(val) {
|
2181
2183
|
return INVALID_METHODS.includes(val);
|
@@ -2450,15 +2452,18 @@ function _evaluate(path, state) {
|
|
2450
2452
|
const callee = path.get("callee");
|
2451
2453
|
let context;
|
2452
2454
|
let func;
|
2453
|
-
if (callee.isIdentifier() && !path.scope.getBinding(callee.node.name) &&
|
2455
|
+
if (callee.isIdentifier() && !path.scope.getBinding(callee.node.name) && (isValidObjectCallee(callee.node.name) || isValidIdentifierCallee(callee.node.name))) {
|
2454
2456
|
func = global[callee.node.name];
|
2455
2457
|
}
|
2456
2458
|
if (callee.isMemberExpression()) {
|
2457
2459
|
const object = callee.get("object");
|
2458
2460
|
const property = callee.get("property");
|
2459
|
-
if (object.isIdentifier() && property.isIdentifier() &&
|
2461
|
+
if (object.isIdentifier() && property.isIdentifier() && isValidObjectCallee(object.node.name) && !isInvalidMethod(property.node.name)) {
|
2460
2462
|
context = global[object.node.name];
|
2461
|
-
|
2463
|
+
const key = property.node.name;
|
2464
|
+
if (Object.hasOwnProperty.call(context, key)) {
|
2465
|
+
func = context[key];
|
2466
|
+
}
|
2462
2467
|
}
|
2463
2468
|
if (object.isLiteral() && property.isIdentifier()) {
|
2464
2469
|
const type = typeof object.node.value;
|
@@ -2506,8 +2511,8 @@ function evaluate() {
|
|
2506
2511
|
|
2507
2512
|
var NodePath_evaluation = /*#__PURE__*/Object.freeze({
|
2508
2513
|
__proto__: null,
|
2509
|
-
|
2510
|
-
|
2514
|
+
evaluate: evaluate,
|
2515
|
+
evaluateTruthy: evaluateTruthy
|
2511
2516
|
});
|
2512
2517
|
|
2513
2518
|
const {
|
@@ -2959,10 +2964,10 @@ function getScopeInformation(fnPath) {
|
|
2959
2964
|
|
2960
2965
|
var NodePath_conversion = /*#__PURE__*/Object.freeze({
|
2961
2966
|
__proto__: null,
|
2962
|
-
|
2967
|
+
arrowFunctionToExpression: arrowFunctionToExpression,
|
2963
2968
|
ensureBlock: ensureBlock,
|
2964
|
-
|
2965
|
-
|
2969
|
+
toComputedKey: toComputedKey,
|
2970
|
+
unwrapFunctionEnvironment: unwrapFunctionEnvironment
|
2966
2971
|
});
|
2967
2972
|
|
2968
2973
|
const {
|
@@ -3325,25 +3330,25 @@ function isInStrictMode() {
|
|
3325
3330
|
|
3326
3331
|
var NodePath_introspection = /*#__PURE__*/Object.freeze({
|
3327
3332
|
__proto__: null,
|
3328
|
-
|
3329
|
-
|
3330
|
-
isStatic: isStatic,
|
3331
|
-
is: is,
|
3332
|
-
isnt: isnt,
|
3333
|
-
equals: equals,
|
3334
|
-
isNodeType: isNodeType,
|
3333
|
+
_guessExecutionStatusRelativeTo: _guessExecutionStatusRelativeTo,
|
3334
|
+
_resolve: _resolve,
|
3335
3335
|
canHaveVariableDeclarationOrExpression: canHaveVariableDeclarationOrExpression,
|
3336
3336
|
canSwapBetweenExpressionAndStatement: canSwapBetweenExpressionAndStatement,
|
3337
|
+
equals: equals,
|
3338
|
+
getSource: getSource,
|
3339
|
+
has: has,
|
3340
|
+
is: is,
|
3337
3341
|
isCompletionRecord: isCompletionRecord,
|
3342
|
+
isConstantExpression: isConstantExpression,
|
3343
|
+
isInStrictMode: isInStrictMode,
|
3344
|
+
isNodeType: isNodeType,
|
3338
3345
|
isStatementOrBlock: isStatementOrBlock,
|
3346
|
+
isStatic: isStatic,
|
3347
|
+
isnt: isnt,
|
3348
|
+
matchesPattern: matchesPattern,
|
3339
3349
|
referencesImport: referencesImport,
|
3340
|
-
getSource: getSource,
|
3341
|
-
willIMaybeExecuteBefore: willIMaybeExecuteBefore,
|
3342
|
-
_guessExecutionStatusRelativeTo: _guessExecutionStatusRelativeTo,
|
3343
3350
|
resolve: resolve,
|
3344
|
-
|
3345
|
-
isConstantExpression: isConstantExpression,
|
3346
|
-
isInStrictMode: isInStrictMode
|
3351
|
+
willIMaybeExecuteBefore: willIMaybeExecuteBefore
|
3347
3352
|
});
|
3348
3353
|
|
3349
3354
|
function call(key) {
|
@@ -3538,27 +3543,27 @@ function _getQueueContexts() {
|
|
3538
3543
|
|
3539
3544
|
var NodePath_context = /*#__PURE__*/Object.freeze({
|
3540
3545
|
__proto__: null,
|
3541
|
-
call: call,
|
3542
3546
|
_call: _call,
|
3543
|
-
|
3544
|
-
isBlacklisted: isDenylisted,
|
3545
|
-
visit: visit,
|
3546
|
-
skip: skip,
|
3547
|
-
skipKey: skipKey,
|
3548
|
-
stop: stop,
|
3549
|
-
setScope: setScope,
|
3550
|
-
setContext: setContext,
|
3551
|
-
resync: resync,
|
3552
|
-
_resyncParent: _resyncParent,
|
3547
|
+
_getQueueContexts: _getQueueContexts,
|
3553
3548
|
_resyncKey: _resyncKey,
|
3554
3549
|
_resyncList: _resyncList,
|
3550
|
+
_resyncParent: _resyncParent,
|
3555
3551
|
_resyncRemoved: _resyncRemoved,
|
3552
|
+
call: call,
|
3553
|
+
isBlacklisted: isDenylisted,
|
3554
|
+
isDenylisted: isDenylisted,
|
3556
3555
|
popContext: popContext,
|
3557
3556
|
pushContext: pushContext,
|
3558
|
-
setup: setup,
|
3559
|
-
setKey: setKey,
|
3560
3557
|
requeue: requeue,
|
3561
|
-
|
3558
|
+
resync: resync,
|
3559
|
+
setContext: setContext,
|
3560
|
+
setKey: setKey,
|
3561
|
+
setScope: setScope,
|
3562
|
+
setup: setup,
|
3563
|
+
skip: skip,
|
3564
|
+
skipKey: skipKey,
|
3565
|
+
stop: stop,
|
3566
|
+
visit: visit
|
3562
3567
|
});
|
3563
3568
|
|
3564
3569
|
const hooks = [function (self, parent) {
|
@@ -3637,12 +3642,12 @@ function _assertUnremoved() {
|
|
3637
3642
|
|
3638
3643
|
var NodePath_removal = /*#__PURE__*/Object.freeze({
|
3639
3644
|
__proto__: null,
|
3640
|
-
|
3641
|
-
_removeFromScope: _removeFromScope,
|
3645
|
+
_assertUnremoved: _assertUnremoved,
|
3642
3646
|
_callRemovalHooks: _callRemovalHooks,
|
3643
|
-
_remove: _remove,
|
3644
3647
|
_markRemoved: _markRemoved,
|
3645
|
-
|
3648
|
+
_remove: _remove,
|
3649
|
+
_removeFromScope: _removeFromScope,
|
3650
|
+
remove: remove
|
3646
3651
|
});
|
3647
3652
|
|
3648
3653
|
const {
|
@@ -4012,16 +4017,16 @@ function hoist(scope = this.scope) {
|
|
4012
4017
|
|
4013
4018
|
var NodePath_modification = /*#__PURE__*/Object.freeze({
|
4014
4019
|
__proto__: null,
|
4015
|
-
insertBefore: insertBefore,
|
4016
4020
|
_containerInsert: _containerInsert,
|
4017
|
-
_containerInsertBefore: _containerInsertBefore,
|
4018
4021
|
_containerInsertAfter: _containerInsertAfter,
|
4019
|
-
|
4020
|
-
updateSiblingKeys: updateSiblingKeys,
|
4022
|
+
_containerInsertBefore: _containerInsertBefore,
|
4021
4023
|
_verifyNodeList: _verifyNodeList,
|
4022
|
-
|
4024
|
+
hoist: hoist,
|
4025
|
+
insertAfter: insertAfter,
|
4026
|
+
insertBefore: insertBefore,
|
4023
4027
|
pushContainer: pushContainer,
|
4024
|
-
|
4028
|
+
unshiftContainer: unshiftContainer,
|
4029
|
+
updateSiblingKeys: updateSiblingKeys
|
4025
4030
|
});
|
4026
4031
|
|
4027
4032
|
const {
|
@@ -4340,20 +4345,20 @@ function getOuterBindingIdentifierPaths(duplicates = false) {
|
|
4340
4345
|
|
4341
4346
|
var NodePath_family = /*#__PURE__*/Object.freeze({
|
4342
4347
|
__proto__: null,
|
4343
|
-
getOpposite: getOpposite,
|
4344
|
-
getCompletionRecords: getCompletionRecords,
|
4345
|
-
getSibling: getSibling,
|
4346
|
-
getPrevSibling: getPrevSibling,
|
4347
|
-
getNextSibling: getNextSibling,
|
4348
|
-
getAllNextSiblings: getAllNextSiblings,
|
4349
|
-
getAllPrevSiblings: getAllPrevSiblings,
|
4350
|
-
get: get,
|
4351
4348
|
_getKey: _getKey,
|
4352
4349
|
_getPattern: _getPattern,
|
4350
|
+
get: get,
|
4351
|
+
getAllNextSiblings: getAllNextSiblings,
|
4352
|
+
getAllPrevSiblings: getAllPrevSiblings,
|
4353
|
+
getBindingIdentifierPaths: getBindingIdentifierPaths,
|
4353
4354
|
getBindingIdentifiers: getBindingIdentifiers,
|
4355
|
+
getCompletionRecords: getCompletionRecords,
|
4356
|
+
getNextSibling: getNextSibling,
|
4357
|
+
getOpposite: getOpposite,
|
4358
|
+
getOuterBindingIdentifierPaths: getOuterBindingIdentifierPaths,
|
4354
4359
|
getOuterBindingIdentifiers: getOuterBindingIdentifiers,
|
4355
|
-
|
4356
|
-
|
4360
|
+
getPrevSibling: getPrevSibling,
|
4361
|
+
getSibling: getSibling
|
4357
4362
|
});
|
4358
4363
|
|
4359
4364
|
const {
|
@@ -4402,9 +4407,9 @@ function addComments(type, comments) {
|
|
4402
4407
|
|
4403
4408
|
var NodePath_comments = /*#__PURE__*/Object.freeze({
|
4404
4409
|
__proto__: null,
|
4405
|
-
shareCommentsWithSiblings: shareCommentsWithSiblings,
|
4406
4410
|
addComment: addComment,
|
4407
|
-
addComments: addComments
|
4411
|
+
addComments: addComments,
|
4412
|
+
shareCommentsWithSiblings: shareCommentsWithSiblings
|
4408
4413
|
});
|
4409
4414
|
|
4410
4415
|
const {
|
@@ -4539,22 +4544,22 @@ function isForAwaitStatement() {
|
|
4539
4544
|
|
4540
4545
|
var NodePath_virtual_types_validator = /*#__PURE__*/Object.freeze({
|
4541
4546
|
__proto__: null,
|
4542
|
-
isReferencedIdentifier: isReferencedIdentifier,
|
4543
|
-
isReferencedMemberExpression: isReferencedMemberExpression,
|
4544
4547
|
isBindingIdentifier: isBindingIdentifier,
|
4545
|
-
isStatement: isStatement,
|
4546
|
-
isExpression: isExpression,
|
4547
|
-
isScope: isScope,
|
4548
|
-
isReferenced: isReferenced,
|
4549
4548
|
isBlockScoped: isBlockScoped,
|
4550
|
-
|
4551
|
-
|
4549
|
+
isExpression: isExpression,
|
4550
|
+
isFlow: isFlow,
|
4551
|
+
isForAwaitStatement: isForAwaitStatement,
|
4552
4552
|
isGenerated: isGenerated,
|
4553
4553
|
isPure: isPure,
|
4554
|
-
|
4554
|
+
isReferenced: isReferenced,
|
4555
|
+
isReferencedIdentifier: isReferencedIdentifier,
|
4556
|
+
isReferencedMemberExpression: isReferencedMemberExpression,
|
4555
4557
|
isRestProperty: isRestProperty,
|
4558
|
+
isScope: isScope,
|
4556
4559
|
isSpreadProperty: isSpreadProperty,
|
4557
|
-
|
4560
|
+
isStatement: isStatement,
|
4561
|
+
isUser: isUser,
|
4562
|
+
isVar: isVar
|
4558
4563
|
});
|
4559
4564
|
|
4560
4565
|
const {
|