feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

View File

@@ -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;