siphon-cli
Version:
Simple bundler for web applications. 📦🔧🧡
22 lines (21 loc) • 804 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Scope = void 0;
var Scope = (function () {
function Scope(node, previousScope) {
var _a;
this.level = 0;
this.node = node;
this.variables = new Map();
this.functions = new Map();
this.undeclared = new Map();
this.ancestors = (_a = previousScope === null || previousScope === void 0 ? void 0 : previousScope.ancestors) !== null && _a !== void 0 ? _a : [];
this.descendants = [];
if (previousScope) {
this.ancestors.push(previousScope);
previousScope === null || previousScope === void 0 ? void 0 : previousScope.descendants.push(this);
}
}
return Scope;
}());
exports.Scope = Scope;