variable_pool.js 758 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.VariablePool = void 0;
  4. var VariablePool = (function () {
  5. function VariablePool() {
  6. this.pool = {};
  7. }
  8. VariablePool.prototype.insert = function (variable) {
  9. this.pool[variable.name] = variable;
  10. };
  11. VariablePool.prototype.lookup = function (name) {
  12. return this.pool[name];
  13. };
  14. VariablePool.prototype.remove = function (name) {
  15. delete this.pool[name];
  16. };
  17. VariablePool.prototype.update = function () {
  18. for (var variable in this.pool) {
  19. this.pool[variable].update();
  20. }
  21. };
  22. return VariablePool;
  23. }());
  24. exports.VariablePool = VariablePool;
  25. //# sourceMappingURL=variable_pool.js.map