From a6271bb3d5daf796071f45f98669dceb6594e301 Mon Sep 17 00:00:00 2001 From: kozbial Date: Tue, 17 Aug 2021 11:46:06 -0700 Subject: [PATCH] Migrate core/renderers/zelos/measurables/inputs.js named requires --- core/renderers/zelos/measurables/inputs.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/core/renderers/zelos/measurables/inputs.js b/core/renderers/zelos/measurables/inputs.js index db6fb9616..0bae12068 100644 --- a/core/renderers/zelos/measurables/inputs.js +++ b/core/renderers/zelos/measurables/inputs.js @@ -13,23 +13,24 @@ goog.module('Blockly.zelos.StatementInput'); goog.module.declareLegacyNamespace(); -goog.require('Blockly.blockRendering.StatementInput'); -goog.require('Blockly.utils.object'); - -goog.requireType('Blockly.blockRendering.ConstantProvider'); -goog.requireType('Blockly.Input'); +const BaseStatementInput = goog.require('Blockly.blockRendering.StatementInput'); +/* eslint-disable-next-line no-unused-vars */ +const ConstantProvider = goog.requireType('Blockly.blockRendering.ConstantProvider'); +/* eslint-disable-next-line no-unused-vars */ +const Input = goog.requireType('Blockly.Input'); +const object = goog.require('Blockly.utils.object'); /** * An object containing information about the space a statement input takes up * during rendering - * @param {!Blockly.blockRendering.ConstantProvider} constants The rendering + * @param {!ConstantProvider} constants The rendering * constants provider. - * @param {!Blockly.Input} input The statement input to measure and store + * @param {!Input} input The statement input to measure and store * information for. * @package * @constructor - * @extends {Blockly.blockRendering.StatementInput} + * @extends {BaseStatementInput} */ const StatementInput = function(constants, input) { StatementInput.superClass_.constructor.call(this, @@ -47,7 +48,7 @@ const StatementInput = function(constants, input) { } } }; -Blockly.utils.object.inherits(StatementInput, - Blockly.blockRendering.StatementInput); +object.inherits(StatementInput, + BaseStatementInput); exports = StatementInput;