feat: refactoring project
This commit is contained in:
6
node_modules/@babel/traverse/lib/path/removal.js
generated
vendored
6
node_modules/@babel/traverse/lib/path/removal.js
generated
vendored
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user