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

@@ -14,13 +14,15 @@ var _cache = require("../cache.js");
var _replacement = require("./replacement.js");
var _index = require("./index.js");
var _t = require("@babel/types");
var _modification = require("./modification.js");
var _context = require("./context.js");
const {
getBindingIdentifiers
} = _t;
function remove() {
var _this$opts;
_assertUnremoved.call(this);
this.resync();
_context.resync.call(this);
if (_callRemovalHooks.call(this)) {
_markRemoved.call(this);
return;
@@ -46,7 +48,7 @@ function _callRemovalHooks() {
function _remove() {
if (Array.isArray(this.container)) {
this.container.splice(this.key, 1);
this.updateSiblingKeys(this.key, -1);
_modification.updateSiblingKeys.call(this, this.key, -1);
} else {
_replacement._replaceWith.call(this, null);
}