More JSDoc improvements

This commit is contained in:
Neil Fraser
2021-05-27 13:09:50 -07:00
committed by Neil Fraser
parent f64c11d74e
commit e661c92a36
32 changed files with 154 additions and 158 deletions

View File

@@ -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
*/