Add non-nullable modifier to return type of functions never returning null (#3742)

This commit is contained in:
Jakub Vrána
2020-03-16 16:14:47 +01:00
committed by GitHub
parent 14428a0da4
commit 00bb99e0ff
4 changed files with 8 additions and 8 deletions

View File

@@ -401,7 +401,7 @@ Blockly.Blocks['lists_getIndex'] = {
/**
* Create XML to represent whether the block is a statement or a value.
* Also represent whether there is an 'AT' input.
* @return {Element} XML storage element.
* @return {!Element} XML storage element.
* @this {Blockly.Block}
*/
mutationToDom: function() {
@@ -565,7 +565,7 @@ Blockly.Blocks['lists_setIndex'] = {
},
/**
* Create XML to represent whether there is an 'AT' input.
* @return {Element} XML storage element.
* @return {!Element} XML storage element.
* @this {Blockly.Block}
*/
mutationToDom: function() {
@@ -663,7 +663,7 @@ Blockly.Blocks['lists_getSublist'] = {
},
/**
* Create XML to represent whether there are 'AT' inputs.
* @return {Element} XML storage element.
* @return {!Element} XML storage element.
* @this {Blockly.Block}
*/
mutationToDom: function() {

View File

@@ -446,7 +446,7 @@ Blockly.Extensions.register('math_op_tooltip',
Blockly.Constants.Math.IS_DIVISIBLEBY_MUTATOR_MIXIN = {
/**
* Create XML to represent whether the 'divisorInput' should be present.
* @return {Element} XML storage element.
* @return {!Element} XML storage element.
* @this {Blockly.Block}
*/
mutationToDom: function() {
@@ -531,7 +531,7 @@ Blockly.Constants.Math.LIST_MODES_MUTATOR_MIXIN = {
},
/**
* Create XML to represent the output type.
* @return {Element} XML storage element.
* @return {!Element} XML storage element.
* @this {Blockly.Block}
*/
mutationToDom: function() {

View File

@@ -317,7 +317,7 @@ Blockly.Extensions.mutatorPropertiesMatch_ = function(oldProperties, block) {
* to the lookup table.
* @param {!Object.<string, string>} lookupTable The table of field values to
* tooltip text.
* @return {Function} The extension function.
* @return {!Function} The extension function.
*/
Blockly.Extensions.buildTooltipForDropdown = function(dropdownName,
lookupTable) {
@@ -401,7 +401,7 @@ Blockly.Extensions.checkDropdownOptionsInTable_ = function(block, dropdownName,
* @param {string} msgTemplate The template form to of the message text, with
* %1 placeholder.
* @param {string} fieldName The field with the replacement text.
* @return {Function} The extension function.
* @return {!Function} The extension function.
*/
Blockly.Extensions.buildTooltipWithFieldText = function(msgTemplate,
fieldName) {

View File

@@ -630,7 +630,7 @@ Blockly.Flyout.prototype.isBlockCreatable_ = function(block) {
/**
* Create a copy of this block on the workspace.
* @param {!Blockly.BlockSvg} originalBlock The block to copy from the flyout.
* @return {Blockly.BlockSvg} The newly created block, or null if something
* @return {!Blockly.BlockSvg} The newly created block, or null if something
* went wrong with deserialization.
* @package
*/