diff options
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; |
