Urara-Blog/node_modules/.pnpm-store/v3/files/29/36aa5a0b890413a08d6f545986f2850653d6e74cb6ee1722f5c9fce36f0a9ad469cc78bea2eb72ab0f5d6f65923eb77d79e7604ddc66bed6ea3269c78d5c54
2022-08-14 01:14:53 +08:00

22 lines
No EOL
809 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WithScope = void 0;
const ScopeBase_1 = require("./ScopeBase");
const ScopeType_1 = require("./ScopeType");
const assert_1 = require("../assert");
class WithScope extends ScopeBase_1.ScopeBase {
constructor(scopeManager, upperScope, block) {
super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false);
}
close(scopeManager) {
if (this.shouldStaticallyClose()) {
return super.close(scopeManager);
}
(0, assert_1.assert)(this.leftToResolve);
this.leftToResolve.forEach(ref => this.delegateToUpperScope(ref));
this.leftToResolve = null;
return this.upper;
}
}
exports.WithScope = WithScope;
//# sourceMappingURL=WithScope.js.map