Migrate core/interfaces/i_ast_node_location_with_block.js to goog.module

This commit is contained in:
kozbial
2021-07-16 11:43:03 -07:00
committed by Monica Kozbial
parent cdea0789dd
commit 794e4554fe
2 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,8 @@
'use strict';
goog.provide('Blockly.IASTNodeLocationWithBlock');
goog.module('Blockly.IASTNodeLocationWithBlock');
goog.module.declareLegacyNamespace();
goog.require('Blockly.IASTNodeLocation');
goog.requireType('Blockly.Block');
@@ -23,10 +24,12 @@ goog.requireType('Blockly.Block');
* @interface
* @extends {Blockly.IASTNodeLocation}
*/
Blockly.IASTNodeLocationWithBlock = function() {};
const IASTNodeLocationWithBlock = function() {};
/**
* Get the source block associated with this node.
* @return {Blockly.Block} The source block.
*/
Blockly.IASTNodeLocationWithBlock.prototype.getSourceBlock;
IASTNodeLocationWithBlock.prototype.getSourceBlock;
exports = IASTNodeLocationWithBlock;