Standardize settings file naming and relocate documentation files Fix code quality violations from rsx:check Reorganize user_management directory into logical subdirectories Move Quill Bundle to core and align with Tom Select pattern Simplify Site Settings page to focus on core site information Complete Phase 5: Multi-tenant authentication with login flow and site selection Add route query parameter rule and synchronize filename validation logic Fix critical bug in UpdateNpmCommand causing missing JavaScript stubs Implement filename convention rule and resolve VS Code auto-rename conflict Implement js-sanitizer RPC server to eliminate 900+ Node.js process spawns Implement RPC server architecture for JavaScript parsing WIP: Add RPC server infrastructure for JS parsing (partial implementation) Update jqhtml terminology from destroy to stop, fix datagrid DOM preservation Add JQHTML-CLASS-01 rule and fix redundant class names Improve code quality rules and resolve violations Remove legacy fatal error format in favor of unified 'fatal' error type Filter internal keys from window.rsxapp output Update button styling and comprehensive form/modal documentation Add conditional fly-in animation for modals Fix non-deterministic bundle compilation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
68 lines
1.9 KiB
JavaScript
Executable File
68 lines
1.9 KiB
JavaScript
Executable File
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports._assertUnremoved = _assertUnremoved;
|
|
exports._callRemovalHooks = _callRemovalHooks;
|
|
exports._markRemoved = _markRemoved;
|
|
exports._remove = _remove;
|
|
exports._removeFromScope = _removeFromScope;
|
|
exports.remove = remove;
|
|
var _removalHooks = require("./lib/removal-hooks.js");
|
|
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");
|
|
function remove() {
|
|
var _this$opts;
|
|
_assertUnremoved.call(this);
|
|
_context.resync.call(this);
|
|
if (_callRemovalHooks.call(this)) {
|
|
_markRemoved.call(this);
|
|
return;
|
|
}
|
|
if (!((_this$opts = this.opts) != null && _this$opts.noScope)) {
|
|
_removeFromScope.call(this);
|
|
}
|
|
this.shareCommentsWithSiblings();
|
|
_remove.call(this);
|
|
_markRemoved.call(this);
|
|
}
|
|
function _removeFromScope() {
|
|
const bindings = t.getBindingIdentifiers(this.node, false, false, true);
|
|
Object.keys(bindings).forEach(name => this.scope.removeBinding(name));
|
|
}
|
|
function _callRemovalHooks() {
|
|
if (this.parentPath) {
|
|
for (const fn of _removalHooks.hooks) {
|
|
if (fn(this, this.parentPath)) return true;
|
|
}
|
|
}
|
|
}
|
|
function _remove() {
|
|
if (Array.isArray(this.container)) {
|
|
this.container.splice(this.key, 1);
|
|
_modification.updateSiblingKeys.call(this, this.key, -1);
|
|
} else {
|
|
_replacement._replaceWith.call(this, null);
|
|
}
|
|
}
|
|
function _markRemoved() {
|
|
this._traverseFlags |= _index.SHOULD_SKIP | _index.REMOVED;
|
|
if (this.parent) {
|
|
var _getCachedPaths;
|
|
(_getCachedPaths = (0, _cache.getCachedPaths)(this)) == null || _getCachedPaths.delete(this.node);
|
|
}
|
|
this.node = null;
|
|
}
|
|
function _assertUnremoved() {
|
|
if (this.removed) {
|
|
throw this.buildCodeFrameError("NodePath has been removed so is read-only.");
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=removal.js.map
|