Make some functions package

This commit is contained in:
Rachel Fenichel
2018-01-16 12:41:52 -08:00
parent fca7bd808c
commit fa91c6b36f
2 changed files with 2 additions and 0 deletions

View File

@@ -344,6 +344,7 @@ Blockly.VariableMap.prototype.getVariablesOfType = function(type) {
/**
* Return all variable types. This list always contains the empty string.
* @return {!Array.<string>} List of variable types.
* @package
*/
Blockly.VariableMap.prototype.getVariableTypes = function() {
var types = Object.keys(this.variableMap_);

View File

@@ -311,6 +311,7 @@ Blockly.Workspace.prototype.getVariablesOfType = function(type) {
/**
* Return all variable types.
* @return {!Array.<string>} List of variable types.
* @package
*/
Blockly.Workspace.prototype.getVariableTypes = function() {
return this.variableMap_.getVariableTypes();