new VariablePool()
- Source:
Methods
insert(variable)
Inserts a new variable into the pool.
Parameters:
Name | Type | Description |
---|---|---|
variable |
Variable.<T> | The new variable. |
- Source:
lookup(name) → (nullable) {Variable.<T>}
Lookup a variable in the pool. Returns undefined if the variable does not
exist.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the variable. |
- Source:
Returns:
The variable if it is in the pool.
- Type
- Variable.<T>
remove(name)
Removes the variable from the pool.
Parameters:
Name | Type | Description |
---|---|---|
name |
name | The name of the variable. |
- Source: