Class for a variable map. This contains a dictionary data structure with variable types as keys and lists of variables as values. The list of variables are the type indicated by the key.
Clear the variable map.
Create a variable with a given name, optional type, and optional ID.
The name of the variable. This must be unique across variables and procedures.
Optionalopt_type: stringThe type of the variable like 'int' or 'string'. Does not need to be unique. Field_variable can filter variables based on their type. This will default to '' which is a specific type.
Optionalopt_id: stringThe unique ID of the variable. This will default to a UUID.
The newly created variable.
Delete a variables by the passed in ID and all of its uses from this workspace. May prompt the user for confirmation.
ID of variable to delete.
Deletes a variable and all of its uses from this workspace without asking the user for confirmation.
Variable to delete.
An array of uses of the variable.
Returns all of the variable names of all types.
All of the variable names of all types.
Find the variable by the given name and type and return it. Return null if it is not found.
The name to check for.
Optionalopt_type: stringThe type of the variable. If not provided it defaults to the empty string, which is a specific type.
The variable with the given name, or null if it was not found.
Find the variable by the given ID and return it. Return null if not found.
The ID to check for.
The variable with the given ID.
Get a list containing all of the variables of a specified type. If type is null, return list of variables with empty string type.
Type of the variables to find.
The sought after variables of the passed in type. An empty array if none are found.
Return all variable and potential variable types. This list always contains the empty string.
List of variable types.
Rename the given variable by updating its name in the variable map.
Variable to rename.
New variable name.
Rename a variable by updating its name in the variable map. Identify the variable to rename with the given ID.
ID of the variable to rename.
New variable name.
Fake class which should be extended to avoid inheriting static properties