blockly > VariableMap > addVariable

VariableMap.addVariable() method

Adds the given variable to this variable map.

Signature:

addVariable(variable: IVariableModel<IVariableState>): void;

Parameters

Parameter Type Description
variable IVariableModel<IVariableState> The variable to add.

Returns:

void