From 04ef2705d169aead800b17336fb85c7569765d16 Mon Sep 17 00:00:00 2001 From: kozbial Date: Fri, 16 Jul 2021 11:43:27 -0700 Subject: [PATCH] Migrate core/interfaces/i_ast_node_location_with_block.js named requires --- core/interfaces/i_ast_node_location_with_block.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/interfaces/i_ast_node_location_with_block.js b/core/interfaces/i_ast_node_location_with_block.js index 85606e546..58da7a902 100644 --- a/core/interfaces/i_ast_node_location_with_block.js +++ b/core/interfaces/i_ast_node_location_with_block.js @@ -15,20 +15,20 @@ goog.module('Blockly.IASTNodeLocationWithBlock'); goog.module.declareLegacyNamespace(); -goog.require('Blockly.IASTNodeLocation'); -goog.requireType('Blockly.Block'); +const Block = goog.requireType('Blockly.Block'); +const IASTNodeLocation = goog.require('Blockly.IASTNodeLocation'); /** * An AST node location that has an associated block. * @interface - * @extends {Blockly.IASTNodeLocation} + * @extends {IASTNodeLocation} */ const IASTNodeLocationWithBlock = function() {}; /** * Get the source block associated with this node. - * @return {Blockly.Block} The source block. + * @return {Block} The source block. */ IASTNodeLocationWithBlock.prototype.getSourceBlock;