avancement planning

This commit is contained in:
2026-05-26 11:58:39 +02:00
parent 619a2b240a
commit 150b97cd2e
4892 changed files with 99214 additions and 429382 deletions
+8 -4
View File
@@ -7,6 +7,7 @@ exports.default = void 0;
var _index = require("./path/index.js");
var _t = require("@babel/types");
var _context = require("./path/context.js");
var _hub = require("./hub.js");
const {
VISITOR_KEYS
} = _t;
@@ -33,12 +34,17 @@ class TraversalContext {
return false;
}
create(node, container, key, listKey) {
const {
parentPath
} = this;
const hub = parentPath == null ? node.type === "Program" || node.type === "File" ? new _hub.default() : undefined : parentPath.hub;
return _index.default.get({
parentPath: this.parentPath,
parentPath,
parent: node,
container,
key: key,
listKey
listKey,
hub
});
}
maybeQueue(path, notPriority) {
@@ -78,7 +84,6 @@ class TraversalContext {
const path = queue[visitIndex];
visitIndex++;
_context.resync.call(path);
;
if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) {
_context.pushContext.call(path, this);
}
@@ -100,7 +105,6 @@ class TraversalContext {
}
}
for (let i = 0; i < visitIndex; i++) {
;
_context.popContext.call(queue[i]);
}
this.queue = null;