mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
More JSDoc improvements
This commit is contained in:
@@ -392,7 +392,7 @@ Blockly.Variables.promptName = function(promptText, defaultText, callback) {
|
||||
* @param {string} type The type to exclude from the search.
|
||||
* @param {!Blockly.Workspace} workspace The workspace to search for the
|
||||
* variable.
|
||||
* @return {Blockly.VariableModel} The variable with the given name and a
|
||||
* @return {?Blockly.VariableModel} The variable with the given name and a
|
||||
* different type, or null if none was found.
|
||||
* @private
|
||||
*/
|
||||
@@ -413,7 +413,7 @@ Blockly.Variables.nameUsedWithOtherType_ = function(name, type, workspace) {
|
||||
* @param {string} name The name to search for.
|
||||
* @param {!Blockly.Workspace} workspace The workspace to search for the
|
||||
* variable.
|
||||
* @return {Blockly.VariableModel} The variable with the given name,
|
||||
* @return {?Blockly.VariableModel} The variable with the given name,
|
||||
* or null if none was found.
|
||||
*/
|
||||
Blockly.Variables.nameUsedWithAnyType = function(name, workspace) {
|
||||
@@ -432,7 +432,7 @@ Blockly.Variables.nameUsedWithAnyType = function(name, workspace) {
|
||||
* Generate DOM objects representing a variable field.
|
||||
* @param {!Blockly.VariableModel} variableModel The variable model to
|
||||
* represent.
|
||||
* @return {Element} The generated DOM.
|
||||
* @return {?Element} The generated DOM.
|
||||
* @public
|
||||
*/
|
||||
Blockly.Variables.generateVariableFieldDom = function(variableModel) {
|
||||
@@ -482,7 +482,7 @@ Blockly.Variables.getOrCreateVariablePackage = function(workspace, id, opt_name,
|
||||
* Only used if lookup by ID fails.
|
||||
* @param {string=} opt_type The type to use to look up the variable.
|
||||
* Only used if lookup by ID fails.
|
||||
* @return {Blockly.VariableModel} The variable corresponding to the given ID
|
||||
* @return {?Blockly.VariableModel} The variable corresponding to the given ID
|
||||
* or name + type combination, or null if not found.
|
||||
* @public
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user