From 06823fbf1c2e763a5bf76c3990ca98fbbcd98691 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 14 May 2024 14:05:49 +0800 Subject: updated node_modules --- node_modules/@babel/traverse/lib/path/index.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'node_modules/@babel/traverse/lib/path/index.js') diff --git a/node_modules/@babel/traverse/lib/path/index.js b/node_modules/@babel/traverse/lib/path/index.js index c835fdc0..13726557 100644 --- a/node_modules/@babel/traverse/lib/path/index.js +++ b/node_modules/@babel/traverse/lib/path/index.js @@ -31,7 +31,7 @@ const debug = _debug("babel"); const REMOVED = exports.REMOVED = 1 << 0; const SHOULD_STOP = exports.SHOULD_STOP = 1 << 1; const SHOULD_SKIP = exports.SHOULD_SKIP = 1 << 2; -class NodePath { +const NodePath_Final = exports.default = class NodePath { constructor(hub, parent) { this.contexts = []; this.state = null; @@ -162,28 +162,27 @@ class NodePath { this._traverseFlags &= ~REMOVED; } } -} -Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments); +}; +Object.assign(NodePath_Final.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments); { - NodePath.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo; + NodePath_Final.prototype._guessExecutionStatusRelativeToDifferentFunctions = NodePath_introspection._guessExecutionStatusRelativeTo; } for (const type of t.TYPES) { const typeKey = `is${type}`; const fn = t[typeKey]; - NodePath.prototype[typeKey] = function (opts) { + NodePath_Final.prototype[typeKey] = function (opts) { return fn(this.node, opts); }; - NodePath.prototype[`assert${type}`] = function (opts) { + NodePath_Final.prototype[`assert${type}`] = function (opts) { if (!fn(this.node, opts)) { throw new TypeError(`Expected node path of type ${type}`); } }; } -Object.assign(NodePath.prototype, NodePath_virtual_types_validator); +Object.assign(NodePath_Final.prototype, NodePath_virtual_types_validator); for (const type of Object.keys(virtualTypes)) { if (type[0] === "_") continue; if (!t.TYPES.includes(type)) t.TYPES.push(type); } -var _default = exports.default = NodePath; //# sourceMappingURL=index.js.map -- cgit v1.2.3