summaryrefslogtreecommitdiff
path: root/node_modules/@babel/traverse/lib/cache.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/@babel/traverse/lib/cache.js
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/@babel/traverse/lib/cache.js')
-rw-r--r--node_modules/@babel/traverse/lib/cache.js44
1 files changed, 0 insertions, 44 deletions
diff --git a/node_modules/@babel/traverse/lib/cache.js b/node_modules/@babel/traverse/lib/cache.js
deleted file mode 100644
index 79a41b9c..00000000
--- a/node_modules/@babel/traverse/lib/cache.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.clear = clear;
-exports.clearPath = clearPath;
-exports.clearScope = clearScope;
-exports.getCachedPaths = getCachedPaths;
-exports.getOrCreateCachedPaths = getOrCreateCachedPaths;
-exports.scope = exports.path = void 0;
-let pathsCache = exports.path = new WeakMap();
-let scope = exports.scope = new WeakMap();
-function clear() {
- clearPath();
- clearScope();
-}
-function clearPath() {
- exports.path = pathsCache = new WeakMap();
-}
-function clearScope() {
- exports.scope = scope = new WeakMap();
-}
-const nullHub = Object.freeze({});
-function getCachedPaths(hub, parent) {
- var _pathsCache$get, _hub;
- {
- hub = null;
- }
- return (_pathsCache$get = pathsCache.get((_hub = hub) != null ? _hub : nullHub)) == null ? void 0 : _pathsCache$get.get(parent);
-}
-function getOrCreateCachedPaths(hub, parent) {
- var _hub2, _hub3;
- {
- hub = null;
- }
- let parents = pathsCache.get((_hub2 = hub) != null ? _hub2 : nullHub);
- if (!parents) pathsCache.set((_hub3 = hub) != null ? _hub3 : nullHub, parents = new WeakMap());
- let paths = parents.get(parent);
- if (!paths) parents.set(parent, paths = new Map());
- return paths;
-}
-
-//# sourceMappingURL=cache.js.map