Files
NapCatQQ/.pnpm-store/v3/files/d2/176f01897bcdd5292ac9b500e47192be11f64c2ce6b3d38838baa2ff02fff7ef6ff06070317c7b5fdc90fb7269af664e8dfae4be840f57a103fd184ba4557e
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

49 lines
1.5 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LazyPlanServiceNode = void 0;
const isLazyPlanServiceNodeSymbol = Symbol.for('@inversifyjs/core/LazyPlanServiceNode');
class LazyPlanServiceNode {
[isLazyPlanServiceNodeSymbol];
_serviceIdentifier;
_serviceNode;
constructor(serviceNode, serviceIdentifier) {
this[isLazyPlanServiceNodeSymbol] = true;
this._serviceNode = serviceNode;
this._serviceIdentifier = serviceIdentifier;
}
get bindings() {
return this._getNode().bindings;
}
get isContextFree() {
return this._getNode().isContextFree;
}
get serviceIdentifier() {
return this._serviceIdentifier;
}
set bindings(bindings) {
this._getNode().bindings = bindings;
}
set isContextFree(isContextFree) {
this._getNode().isContextFree = isContextFree;
}
static is(value) {
return (typeof value === 'object' &&
value !== null &&
value[isLazyPlanServiceNodeSymbol] ===
true);
}
invalidate() {
this._serviceNode = undefined;
}
isExpanded() {
return this._serviceNode !== undefined;
}
_getNode() {
if (this._serviceNode === undefined) {
this._serviceNode = this._buildPlanServiceNode();
}
return this._serviceNode;
}
}
exports.LazyPlanServiceNode = LazyPlanServiceNode;
//# sourceMappingURL=LazyPlanServiceNode.js.map