diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-08-30 17:21:18 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-08-30 17:21:18 +0800 |
| commit | efbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch) | |
| tree | 2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/@babel/traverse/lib/context.js | |
| parent | 43acceb75957c880a5ba5a31aae221394a36d5f6 (diff) | |
node fixes, updates
Diffstat (limited to 'node_modules/@babel/traverse/lib/context.js')
| -rw-r--r-- | node_modules/@babel/traverse/lib/context.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/node_modules/@babel/traverse/lib/context.js b/node_modules/@babel/traverse/lib/context.js index fc9a067a..106d0970 100644 --- a/node_modules/@babel/traverse/lib/context.js +++ b/node_modules/@babel/traverse/lib/context.js @@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { exports.default = void 0; var _index = require("./path/index.js"); var _t = require("@babel/types"); +var _context = require("./path/context.js"); const { VISITOR_KEYS } = _t; @@ -76,9 +77,9 @@ class TraversalContext { for (; visitIndex < queue.length;) { const path = queue[visitIndex]; visitIndex++; - path.resync(); + _context.resync.call(path); if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) { - path.pushContext(this); + _context.pushContext.call(path, this); } if (path.key === null) continue; const { @@ -98,7 +99,7 @@ class TraversalContext { } } for (let i = 0; i < visitIndex; i++) { - queue[i].popContext(); + _context.popContext.call(queue[i]); } this.queue = null; return stop; |
