* Registers a new instance of type manager. Basically sets the global state to the * static type manager if not yet done. * * @returns {void} Nothing.
()
| 299 | * @returns {void} Nothing. |
| 300 | */ |
| 301 | private register(): void |
| 302 | { |
| 303 | if (TYPE_MANAGER_STATE.staticSymbol === TYPE_METADATA_SYMBOL) |
| 304 | { |
| 305 | TYPE_MANAGER_STATE.staticSymbol = this.symbol; |
| 306 | TYPE_MANAGER_STATE.activeSymbol = this.symbol; |
| 307 | } |
| 308 | |
| 309 | return; |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * Executes a function within a current type manager scope. |