diff options
Diffstat (limited to 'node_modules/@babel/traverse/lib/path/index.js')
| -rw-r--r-- | node_modules/@babel/traverse/lib/path/index.js | 15 |
1 files changed, 7 insertions, 8 deletions
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 |
