(id2, init)
| 14475 | this.has_animation = true; |
| 14476 | } |
| 14477 | add_variable(id2, init) { |
| 14478 | if (this.variables.has(id2.name)) { |
| 14479 | throw new Error(`Variable '${id2.name}' already initialised with a different value`); |
| 14480 | } |
| 14481 | this.variables.set(id2.name, { id: id2, init }); |
| 14482 | } |
| 14483 | alias(name) { |
| 14484 | if (!this.aliases.has(name)) { |
| 14485 | this.aliases.set(name, this.get_unique_name(name)); |
no test coverage detected