Skip to content

Commit

Permalink
fix: Use require instead of requireType for interfaces (google#5568)
Browse files Browse the repository at this point in the history
But only if the interface is used in an @implements or @extends
declaration.

Fixes google#5450
  • Loading branch information
cpcallen authored Sep 29, 2021
1 parent c5ffd03 commit d2d5dc4
Show file tree
Hide file tree
Showing 38 changed files with 123 additions and 123 deletions.
4 changes: 2 additions & 2 deletions core/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const Extensions = goog.require('Blockly.Extensions');
/* eslint-disable-next-line no-unused-vars */
const Field = goog.requireType('Blockly.Field');
/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocation = goog.requireType('Blockly.IASTNodeLocation');
const IASTNodeLocation = goog.require('Blockly.IASTNodeLocation');
/* eslint-disable-next-line no-unused-vars */
const IDeletable = goog.requireType('Blockly.IDeletable');
const IDeletable = goog.require('Blockly.IDeletable');
const Input = goog.require('Blockly.Input');
/* eslint-disable-next-line no-unused-vars */
const Mutator = goog.requireType('Blockly.Mutator');
Expand Down
2 changes: 1 addition & 1 deletion core/block_dragger.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ goog.module('Blockly.BlockDragger');

const Coordinate = goog.require('Blockly.utils.Coordinate');
/* eslint-disable-next-line no-unused-vars */
const IBlockDragger = goog.requireType('Blockly.IBlockDragger');
const IBlockDragger = goog.require('Blockly.IBlockDragger');
/* eslint-disable-next-line no-unused-vars */
const IDragTarget = goog.requireType('Blockly.IDragTarget');
const InsertionMarkerManager = goog.require('Blockly.InsertionMarkerManager');
Expand Down
8 changes: 4 additions & 4 deletions core/block_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ const Coordinate = goog.require('Blockly.utils.Coordinate');
const Field = goog.requireType('Blockly.Field');
const FieldLabel = goog.require('Blockly.FieldLabel');
/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocationSvg = goog.requireType('Blockly.IASTNodeLocationSvg');
const IASTNodeLocationSvg = goog.require('Blockly.IASTNodeLocationSvg');
/* eslint-disable-next-line no-unused-vars */
const IBoundedElement = goog.requireType('Blockly.IBoundedElement');
const IBoundedElement = goog.require('Blockly.IBoundedElement');
/* eslint-disable-next-line no-unused-vars */
const ICopyable = goog.requireType('Blockly.ICopyable');
const ICopyable = goog.require('Blockly.ICopyable');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
const IDraggable = goog.require('Blockly.IDraggable');
/* eslint-disable-next-line no-unused-vars */
const IPathObject = goog.requireType('Blockly.blockRendering.IPathObject');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ goog.module('Blockly.Bubble');

const Coordinate = goog.require('Blockly.utils.Coordinate');
/* eslint-disable-next-line no-unused-vars */
const IBubble = goog.requireType('Blockly.IBubble');
const IBubble = goog.require('Blockly.IBubble');
/* eslint-disable-next-line no-unused-vars */
const MetricsManager = goog.requireType('Blockly.MetricsManager');
const Scrollbar = goog.require('Blockly.Scrollbar');
Expand Down
2 changes: 1 addition & 1 deletion core/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
goog.module('Blockly.Connection');

/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocationWithBlock = goog.requireType('Blockly.IASTNodeLocationWithBlock');
const IASTNodeLocationWithBlock = goog.require('Blockly.IASTNodeLocationWithBlock');
/* eslint-disable-next-line no-unused-vars */
const IConnectionChecker = goog.requireType('Blockly.IConnectionChecker');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/connection_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ goog.module('Blockly.ConnectionChecker');

const Connection = goog.require('Blockly.Connection');
/* eslint-disable-next-line no-unused-vars */
const IConnectionChecker = goog.requireType('Blockly.IConnectionChecker');
const IConnectionChecker = goog.require('Blockly.IConnectionChecker');
/* eslint-disable-next-line no-unused-vars */
const RenderedConnection = goog.requireType('Blockly.RenderedConnection');
const common = goog.require('Blockly.common');
Expand Down
2 changes: 1 addition & 1 deletion core/delete_area.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ goog.module('Blockly.DeleteArea');

const DragTarget = goog.require('Blockly.DragTarget');
/* eslint-disable-next-line no-unused-vars */
const IDeleteArea = goog.requireType('Blockly.IDeleteArea');
const IDeleteArea = goog.require('Blockly.IDeleteArea');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
const object = goog.require('Blockly.utils.object');
Expand Down
2 changes: 1 addition & 1 deletion core/drag_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
goog.module('Blockly.DragTarget');

/* eslint-disable-next-line no-unused-vars */
const IDragTarget = goog.requireType('Blockly.IDragTarget');
const IDragTarget = goog.require('Blockly.IDragTarget');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
/* eslint-disable-next-line no-unused-vars */
Expand Down
8 changes: 4 additions & 4 deletions core/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ const ConstantProvider = goog.requireType('Blockly.blockRendering.ConstantProvid
const Coordinate = goog.requireType('Blockly.utils.Coordinate');
const DropDownDiv = goog.require('Blockly.DropDownDiv');
/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocationSvg = goog.requireType('Blockly.IASTNodeLocationSvg');
const IASTNodeLocationSvg = goog.require('Blockly.IASTNodeLocationSvg');
/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocationWithBlock = goog.requireType('Blockly.IASTNodeLocationWithBlock');
const IASTNodeLocationWithBlock = goog.require('Blockly.IASTNodeLocationWithBlock');
/* eslint-disable-next-line no-unused-vars */
const IKeyboardAccessible = goog.requireType('Blockly.IKeyboardAccessible');
const IKeyboardAccessible = goog.require('Blockly.IKeyboardAccessible');
/* eslint-disable-next-line no-unused-vars */
const Input = goog.requireType('Blockly.Input');
/* eslint-disable-next-line no-unused-vars */
const IRegistrable = goog.requireType('Blockly.IRegistrable');
const IRegistrable = goog.require('Blockly.IRegistrable');
const MarkerManager = goog.require('Blockly.MarkerManager');
const Rect = goog.require('Blockly.utils.Rect');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/flyout_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const DeleteArea = goog.require('Blockly.DeleteArea');
const FlyoutButton = goog.requireType('Blockly.FlyoutButton');
const FlyoutMetricsManager = goog.require('Blockly.FlyoutMetricsManager');
/* eslint-disable-next-line no-unused-vars */
const IFlyout = goog.requireType('Blockly.IFlyout');
const IFlyout = goog.require('Blockly.IFlyout');
/* eslint-disable-next-line no-unused-vars */
const Options = goog.requireType('Blockly.Options');
const ScrollbarPair = goog.require('Blockly.ScrollbarPair');
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_ast_node_location_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
goog.module('Blockly.IASTNodeLocationSvg');

/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocation = goog.requireType('Blockly.IASTNodeLocation');
const IASTNodeLocation = goog.require('Blockly.IASTNodeLocation');


/**
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_ast_node_location_with_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
goog.module('Blockly.IASTNodeLocationWithBlock');

/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocation = goog.requireType('Blockly.IASTNodeLocation');
const IASTNodeLocation = goog.require('Blockly.IASTNodeLocation');
/* eslint-disable-next-line no-unused-vars */
const {Block} = goog.requireType('Blockly.Block');

Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_autohideable.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
goog.module('Blockly.IAutoHideable');

/* eslint-disable-next-line no-unused-vars */
const IComponent = goog.requireType('Blockly.IComponent');
const IComponent = goog.require('Blockly.IComponent');


/**
Expand Down
4 changes: 2 additions & 2 deletions core/interfaces/i_bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ goog.module('Blockly.IBubble');
/* eslint-disable-next-line no-unused-vars */
const Coordinate = goog.requireType('Blockly.utils.Coordinate');
/* eslint-disable-next-line no-unused-vars */
const IContextMenu = goog.requireType('Blockly.IContextMenu');
const IContextMenu = goog.require('Blockly.IContextMenu');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
const IDraggable = goog.require('Blockly.IDraggable');
/* eslint-disable-next-line no-unused-vars */
const {BlockDragSurfaceSvg} = goog.requireType('Blockly.BlockDragSurfaceSvg');

Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_collapsible_toolbox_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
goog.module('Blockly.ICollapsibleToolboxItem');

/* eslint-disable-next-line no-unused-vars */
const ISelectableToolboxItem = goog.requireType('Blockly.ISelectableToolboxItem');
const ISelectableToolboxItem = goog.require('Blockly.ISelectableToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const IToolboxItem = goog.requireType('Blockly.IToolboxItem');

Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_copyable.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
goog.module('Blockly.ICopyable');

/* eslint-disable-next-line no-unused-vars */
const ISelectable = goog.requireType('Blockly.ISelectable');
const ISelectable = goog.require('Blockly.ISelectable');
/* eslint-disable-next-line no-unused-vars */
const WorkspaceSvg = goog.requireType('Blockly.WorkspaceSvg');

Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_delete_area.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ goog.module('Blockly.IDeleteArea');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
/* eslint-disable-next-line no-unused-vars */
const IDragTarget = goog.requireType('Blockly.IDragTarget');
const IDragTarget = goog.require('Blockly.IDragTarget');


/**
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_drag_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
goog.module('Blockly.IDragTarget');

/* eslint-disable-next-line no-unused-vars */
const IComponent = goog.requireType('Blockly.IComponent');
const IComponent = goog.require('Blockly.IComponent');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_draggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
goog.module('Blockly.IDraggable');

/* eslint-disable-next-line no-unused-vars */
const IDeletable = goog.requireType('Blockly.IDeletable');
const IDeletable = goog.require('Blockly.IDeletable');


/**
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ goog.module('Blockly.IFlyout');
/* eslint-disable-next-line no-unused-vars */
const Coordinate = goog.requireType('Blockly.utils.Coordinate');
/* eslint-disable-next-line no-unused-vars */
const IRegistrable = goog.requireType('Blockly.IRegistrable');
const IRegistrable = goog.require('Blockly.IRegistrable');
/* eslint-disable-next-line no-unused-vars */
const Svg = goog.requireType('Blockly.utils.Svg');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_positionable.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
goog.module('Blockly.IPositionable');

/* eslint-disable-next-line no-unused-vars */
const IComponent = goog.requireType('Blockly.IComponent');
const IComponent = goog.require('Blockly.IComponent');
/* eslint-disable-next-line no-unused-vars */
const MetricsManager = goog.requireType('Blockly.MetricsManager');
/* eslint-disable-next-line no-unused-vars */
Expand Down
4 changes: 2 additions & 2 deletions core/interfaces/i_selectable.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
goog.module('Blockly.ISelectable');

// eslint-disable-next-line no-unused-vars
const IDeletable = goog.requireType('Blockly.IDeletable');
const IDeletable = goog.require('Blockly.IDeletable');
// eslint-disable-next-line no-unused-vars
const IMovable = goog.requireType('Blockly.IMovable');
const IMovable = goog.require('Blockly.IMovable');


/**
Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_selectable_toolbox_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
goog.module('Blockly.ISelectableToolboxItem');

/* eslint-disable-next-line no-unused-vars */
const IToolboxItem = goog.requireType('Blockly.IToolboxItem');
const IToolboxItem = goog.require('Blockly.IToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const toolbox = goog.requireType('Blockly.utils.toolbox');

Expand Down
2 changes: 1 addition & 1 deletion core/interfaces/i_toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ goog.module('Blockly.IToolbox');
/* eslint-disable-next-line no-unused-vars */
const IFlyout = goog.requireType('Blockly.IFlyout');
/* eslint-disable-next-line no-unused-vars */
const IRegistrable = goog.requireType('Blockly.IRegistrable');
const IRegistrable = goog.require('Blockly.IRegistrable');
/* eslint-disable-next-line no-unused-vars */
const IToolboxItem = goog.requireType('Blockly.IToolboxItem');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/metrics_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ goog.module('Blockly.MetricsManager');
/* eslint-disable-next-line no-unused-vars */
const IFlyout = goog.requireType('Blockly.IFlyout');
/* eslint-disable-next-line no-unused-vars */
const IMetricsManager = goog.requireType('Blockly.IMetricsManager');
const IMetricsManager = goog.require('Blockly.IMetricsManager');
/* eslint-disable-next-line no-unused-vars */
const IToolbox = goog.requireType('Blockly.IToolbox');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/renderers/common/path_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Connection = goog.requireType('Blockly.Connection');
/* eslint-disable-next-line no-unused-vars */
const ConstantProvider = goog.requireType('Blockly.blockRendering.ConstantProvider');
/* eslint-disable-next-line no-unused-vars */
const IPathObject = goog.requireType('Blockly.blockRendering.IPathObject');
const IPathObject = goog.require('Blockly.blockRendering.IPathObject');
const Svg = goog.require('Blockly.utils.Svg');
/* eslint-disable-next-line no-unused-vars */
const Theme = goog.requireType('Blockly.Theme');
Expand Down
2 changes: 1 addition & 1 deletion core/renderers/common/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Debug = goog.requireType('Blockly.blockRendering.Debug');
const Drawer = goog.require('Blockly.blockRendering.Drawer');
const InsertionMarkerManager = goog.require('Blockly.InsertionMarkerManager');
/* eslint-disable-next-line no-unused-vars */
const IRegistrable = goog.requireType('Blockly.IRegistrable');
const IRegistrable = goog.require('Blockly.IRegistrable');
/* eslint-disable-next-line no-unused-vars */
const IPathObject = goog.requireType('Blockly.blockRendering.IPathObject');
const MarkerSvg = goog.require('Blockly.blockRendering.MarkerSvg');
Expand Down
2 changes: 1 addition & 1 deletion core/toolbox/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Css = goog.require('Blockly.Css');
/* eslint-disable-next-line no-unused-vars */
const ICollapsibleToolboxItem = goog.requireType('Blockly.ICollapsibleToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const ISelectableToolboxItem = goog.requireType('Blockly.ISelectableToolboxItem');
const ISelectableToolboxItem = goog.require('Blockly.ISelectableToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const IToolbox = goog.requireType('Blockly.IToolbox');
const ToolboxItem = goog.require('Blockly.ToolboxItem');
Expand Down
2 changes: 1 addition & 1 deletion core/toolbox/collapsible_category.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
goog.module('Blockly.CollapsibleToolboxCategory');

/* eslint-disable-next-line no-unused-vars */
const ICollapsibleToolboxItem = goog.requireType('Blockly.ICollapsibleToolboxItem');
const ICollapsibleToolboxItem = goog.require('Blockly.ICollapsibleToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const IToolbox = goog.requireType('Blockly.IToolbox');
/* eslint-disable-next-line no-unused-vars */
Expand Down
8 changes: 4 additions & 4 deletions core/toolbox/toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ const ComponentManager = goog.require('Blockly.ComponentManager');
const Css = goog.require('Blockly.Css');
const DeleteArea = goog.require('Blockly.DeleteArea');
/* eslint-disable-next-line no-unused-vars */
const IAutoHideable = goog.requireType('Blockly.IAutoHideable');
const IAutoHideable = goog.require('Blockly.IAutoHideable');
/* eslint-disable-next-line no-unused-vars */
const ICollapsibleToolboxItem = goog.requireType('Blockly.ICollapsibleToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
/* eslint-disable-next-line no-unused-vars */
const IFlyout = goog.requireType('Blockly.IFlyout');
/* eslint-disable-next-line no-unused-vars */
const IKeyboardAccessible = goog.requireType('Blockly.IKeyboardAccessible');
const IKeyboardAccessible = goog.require('Blockly.IKeyboardAccessible');
/* eslint-disable-next-line no-unused-vars */
const ISelectableToolboxItem = goog.requireType('Blockly.ISelectableToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const IStyleable = goog.requireType('Blockly.IStyleable');
const IStyleable = goog.require('Blockly.IStyleable');
/* eslint-disable-next-line no-unused-vars */
const IToolbox = goog.requireType('Blockly.IToolbox');
const IToolbox = goog.require('Blockly.IToolbox');
/* eslint-disable-next-line no-unused-vars */
const IToolboxItem = goog.requireType('Blockly.IToolboxItem');
const Options = goog.require('Blockly.Options');
Expand Down
2 changes: 1 addition & 1 deletion core/toolbox/toolbox_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ICollapsibleToolboxItem = goog.requireType('Blockly.ICollapsibleToolboxIte
/* eslint-disable-next-line no-unused-vars */
const IToolbox = goog.requireType('Blockly.IToolbox');
/* eslint-disable-next-line no-unused-vars */
const IToolboxItem = goog.requireType('Blockly.IToolboxItem');
const IToolboxItem = goog.require('Blockly.IToolboxItem');
/* eslint-disable-next-line no-unused-vars */
const WorkspaceSvg = goog.requireType('Blockly.WorkspaceSvg');
const idGenerator = goog.require('Blockly.utils.idGenerator');
Expand Down
4 changes: 2 additions & 2 deletions core/trashcan.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ const BlocklyOptions = goog.requireType('Blockly.BlocklyOptions');
const ComponentManager = goog.require('Blockly.ComponentManager');
const DeleteArea = goog.require('Blockly.DeleteArea');
/* eslint-disable-next-line no-unused-vars */
const IAutoHideable = goog.requireType('Blockly.IAutoHideable');
const IAutoHideable = goog.require('Blockly.IAutoHideable');
/* eslint-disable-next-line no-unused-vars */
const IDraggable = goog.requireType('Blockly.IDraggable');
/* eslint-disable-next-line no-unused-vars */
const IFlyout = goog.requireType('Blockly.IFlyout');
/* eslint-disable-next-line no-unused-vars */
const IPositionable = goog.requireType('Blockly.IPositionable');
const IPositionable = goog.require('Blockly.IPositionable');
/* eslint-disable-next-line no-unused-vars */
const MetricsManager = goog.requireType('Blockly.MetricsManager');
const Options = goog.require('Blockly.Options');
Expand Down
2 changes: 1 addition & 1 deletion core/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const BlocklyOptions = goog.requireType('Blockly.BlocklyOptions');
/* eslint-disable-next-line no-unused-vars */
const ConnectionDB = goog.requireType('Blockly.ConnectionDB');
/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocation = goog.requireType('Blockly.IASTNodeLocation');
const IASTNodeLocation = goog.require('Blockly.IASTNodeLocation');
/* eslint-disable-next-line no-unused-vars */
const IConnectionChecker = goog.requireType('Blockly.IConnectionChecker');
const Options = goog.require('Blockly.Options');
Expand Down
6 changes: 3 additions & 3 deletions core/workspace_comment_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const ContextMenu = goog.require('Blockly.ContextMenu');
const Coordinate = goog.require('Blockly.utils.Coordinate');
const Css = goog.require('Blockly.Css');
/* eslint-disable-next-line no-unused-vars */
const IBoundedElement = goog.requireType('Blockly.IBoundedElement');
const IBoundedElement = goog.require('Blockly.IBoundedElement');
/* eslint-disable-next-line no-unused-vars */
const IBubble = goog.requireType('Blockly.IBubble');
const IBubble = goog.require('Blockly.IBubble');
/* eslint-disable-next-line no-unused-vars */
const ICopyable = goog.requireType('Blockly.ICopyable');
const ICopyable = goog.require('Blockly.ICopyable');
const Rect = goog.require('Blockly.utils.Rect');
const Svg = goog.require('Blockly.utils.Svg');
const Touch = goog.require('Blockly.Touch');
Expand Down
2 changes: 1 addition & 1 deletion core/workspace_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const FlyoutButton = goog.requireType('Blockly.FlyoutButton');
const Gesture = goog.require('Blockly.Gesture');
const Grid = goog.require('Blockly.Grid');
/* eslint-disable-next-line no-unused-vars */
const IASTNodeLocationSvg = goog.requireType('Blockly.IASTNodeLocationSvg');
const IASTNodeLocationSvg = goog.require('Blockly.IASTNodeLocationSvg');
/* eslint-disable-next-line no-unused-vars */
const IBoundedElement = goog.requireType('Blockly.IBoundedElement');
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 1 addition & 1 deletion core/zoom_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ goog.module('Blockly.ZoomControls');
const ComponentManager = goog.require('Blockly.ComponentManager');
const Css = goog.require('Blockly.Css');
/* eslint-disable-next-line no-unused-vars */
const IPositionable = goog.requireType('Blockly.IPositionable');
const IPositionable = goog.require('Blockly.IPositionable');
/* eslint-disable-next-line no-unused-vars */
const MetricsManager = goog.requireType('Blockly.MetricsManager');
const Rect = goog.require('Blockly.utils.Rect');
Expand Down
Loading

0 comments on commit d2d5dc4

Please sign in to comment.