Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/@babel/traverse/lib/path/modification.js
rd565449 r0c6b92a 8 8 exports._containerInsertBefore = _containerInsertBefore; 9 9 exports._verifyNodeList = _verifyNodeList; 10 exports.hoist = hoist;11 10 exports.insertAfter = insertAfter; 12 11 exports.insertBefore = insertBefore; … … 61 60 } 62 61 function _containerInsert(from, nodes) { 63 this.updateSiblingKeys(from, nodes.length);62 updateSiblingKeys.call(this, from, nodes.length); 64 63 const paths = []; 65 64 this.container.splice(from, 0, ...nodes); … … 70 69 paths.push(path); 71 70 if ((_this$context = this.context) != null && _this$context.queue) { 72 path.pushContext(this.context);71 _context.pushContext.call(path, this.context); 73 72 } 74 73 } 75 74 const contexts = _context._getQueueContexts.call(this); 76 75 for (const path of paths) { 77 path.setScope();76 _context.setScope.call(path); 78 77 path.debug("Inserted."); 79 78 for (const context of contexts) { … … 165 164 const paths = (0, _cache.getCachedPaths)(this.hub, this.parent) || []; 166 165 for (const [, path] of paths) { 167 if (typeof path.key === "number" && path. key >= fromIndex) {166 if (typeof path.key === "number" && path.container === this.container && path.key >= fromIndex) { 168 167 path.key += incrementBy; 169 168 } … … 221 220 return path.replaceWithMultiple(verifiedNodes); 222 221 } 223 function hoist(scope = this.scope) { 224 const hoister = new _hoister.default(this, scope); 225 return hoister.run(); 222 { 223 exports.hoist = function hoist(scope = this.scope) { 224 const hoister = new _hoister.default(this, scope); 225 return hoister.run(); 226 }; 226 227 } 227 228
Note:
See TracChangeset
for help on using the changeset viewer.