Enable unusedPrivateMembers check (#3924)

* Add unusedPrivateMembers check
This commit is contained in:
Sam El-Husseini
2020-05-28 17:44:16 -07:00
committed by GitHub
parent 8ec3a49487
commit 1052f7548b
22 changed files with 74 additions and 96 deletions

View File

@@ -80,6 +80,13 @@ Blockly.FieldTextInput = function(opt_value, opt_validator, opt_config) {
* @type {?boolean}
*/
this.fullBlockClickTarget_ = false;
/**
* The workspace that this field belongs to.
* @type {?Blockly.WorkspaceSvg}
* @protected
*/
this.workspace_ = null;
};
Blockly.utils.object.inherits(Blockly.FieldTextInput, Blockly.Field);
@@ -275,7 +282,8 @@ Blockly.FieldTextInput.prototype.setSpellcheck = function(check) {
*/
Blockly.FieldTextInput.prototype.showEditor_ = function(_opt_e,
opt_quietInput) {
this.workspace_ = this.sourceBlock_.workspace;
this.workspace_ =
(/** @type {!Blockly.BlockSvg} */ (this.sourceBlock_)).workspace;
var quietInput = opt_quietInput || false;
if (!quietInput && (Blockly.utils.userAgent.MOBILE ||
Blockly.utils.userAgent.ANDROID ||