Skip to content

Commit

Permalink
chore: add declareModuleId (google#6238)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilFraser authored and BeksOmega committed Aug 2, 2022
1 parent d1157d9 commit 1a0e140
Show file tree
Hide file tree
Showing 258 changed files with 299 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* The class representing one block.
* @class
*/
goog.declareModuleId('Blockly.Block');

// Unused import preserved for side-effects. Remove if unneeded.
import './events/events_block_change';
Expand Down
1 change: 1 addition & 0 deletions core/block_animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Methods animating a block on connection and disconnection.
* @namespace Blockly.blockAnimations
*/
goog.declareModuleId('Blockly.blockAnimations');

/* eslint-disable-next-line no-unused-vars */
import {BlockSvg} from './block_svg.js';
Expand Down
1 change: 1 addition & 0 deletions core/block_drag_surface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* while dragging blocks.
* @class
*/
goog.declareModuleId('Blockly.BlockDragSurfaceSvg');

import {Coordinate} from './utils/coordinate.js';
import * as dom from './utils/dom.js';
Expand Down
1 change: 1 addition & 0 deletions core/block_dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Methods for dragging a block visually.
* @class
*/
goog.declareModuleId('Blockly.BlockDragger');

// Unused import preserved for side-effects. Remove if unneeded.
import './events/events_block_drag';
Expand Down
2 changes: 2 additions & 0 deletions core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Methods for graphically rendering a block as SVG.
* @class
*/
goog.declareModuleId('Blockly.BlockSvg');

/* eslint-disable-next-line no-unused-vars */
// Unused import preserved for side-effects. Remove if unneeded.
import './theme';
Expand Down
2 changes: 2 additions & 0 deletions core/blockly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* The top level namespace used to access the Blockly library.
* @namespace Blockly
*/
goog.declareModuleId('Blockly');

// Unused import preserved for side-effects. Remove if unneeded.
import './events/events_block_create';
// Unused import preserved for side-effects. Remove if unneeded.
Expand Down
1 change: 1 addition & 0 deletions core/blockly_options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Object that defines user-specified options for the workspace.
* @namespace Blockly.BlocklyOptions
*/
goog.declareModuleId('Blockly.BlocklyOptions');


/**
Expand Down
1 change: 1 addition & 0 deletions core/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* A mapping of block type names to block prototype objects.
* @namespace Blockly.blocks
*/
goog.declareModuleId('Blockly.blocks');


/**
Expand Down
1 change: 1 addition & 0 deletions core/browser_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Browser event handling.
* @namespace Blockly.browserEvents
*/
goog.declareModuleId('Blockly.browserEvents');

import * as Touch from './touch.js';
import * as userAgent from './utils/useragent.js';
Expand Down
2 changes: 2 additions & 0 deletions core/bubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Object representing a UI bubble.
* @class
*/
goog.declareModuleId('Blockly.Bubble');

/* eslint-disable-next-line no-unused-vars */
// Unused import preserved for side-effects. Remove if unneeded.
import './metrics_manager';
Expand Down
1 change: 1 addition & 0 deletions core/bubble_dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Methods for dragging a bubble visually.
* @class
*/
goog.declareModuleId('Blockly.BubbleDragger');

// Unused import preserved for side-effects. Remove if unneeded.
import './bubble';
Expand Down
2 changes: 2 additions & 0 deletions core/bump_objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Utilities for bumping objects back into worksapce bounds.
* @namespace Blockly.bumpObjects
*/
goog.declareModuleId('Blockly.bumpObjects');

/* eslint-disable-next-line no-unused-vars */
import {BlockSvg} from './block_svg.js';
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 2 additions & 0 deletions core/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Blockly's internal clipboard for managing copy-paste.
* @namespace Blockly.clipboard
*/
goog.declareModuleId('Blockly.clipboard');

import {CopyData, ICopyable} from './interfaces/i_copyable.js';


Expand Down
2 changes: 2 additions & 0 deletions core/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Object representing a code comment.
* @class
*/
goog.declareModuleId('Blockly.Comment');

/* eslint-disable-next-line no-unused-vars */
// Unused import preserved for side-effects. Remove if unneeded.
import './block';
Expand Down
1 change: 1 addition & 0 deletions core/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* must not be at the top level to avoid circular dependencies.
* @namespace Blockly.common
*/
goog.declareModuleId('Blockly.common');

/* eslint-disable-next-line no-unused-vars */
/* eslint-disable-next-line no-unused-vars */
Expand Down
1 change: 1 addition & 0 deletions core/component_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Manager for all items registered with the workspace.
* @class
*/
goog.declareModuleId('Blockly.ComponentManager');

/* eslint-disable-next-line no-unused-vars */
import {IAutoHideable} from './interfaces/i_autohideable.js';
Expand Down
2 changes: 2 additions & 0 deletions core/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* generally recommended.
* @namespace Blockly.config
*/
goog.declareModuleId('Blockly.config');

/**
* All the values that we expect developers to be able to change
* before injecting Blockly.
Expand Down
1 change: 1 addition & 0 deletions core/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Components for creating connections between blocks.
* @class
*/
goog.declareModuleId('Blockly.Connection');

// Unused import preserved for side-effects. Remove if unneeded.
import './constants';
Expand Down
1 change: 1 addition & 0 deletions core/connection_checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* potential connection is safe and valid.
* @class
*/
goog.declareModuleId('Blockly.ConnectionChecker');

import * as common from './common.js';
import {Connection} from './connection.js';
Expand Down
1 change: 1 addition & 0 deletions core/connection_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Sorted by y coordinate.
* @class
*/
goog.declareModuleId('Blockly.ConnectionDB');

// Unused import preserved for side-effects. Remove if unneeded.
import './constants';
Expand Down
1 change: 1 addition & 0 deletions core/connection_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* An enum for the possible types of connections.
* @namespace Blockly.ConnectionType
*/
goog.declareModuleId('Blockly.ConnectionType');


/**
Expand Down
1 change: 1 addition & 0 deletions core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Blockly constants.
* @namespace Blockly.constants
*/
goog.declareModuleId('Blockly.constants');


/**
Expand Down
2 changes: 2 additions & 0 deletions core/contextmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Functionality for the right-click context menus.
* @namespace Blockly.ContextMenu
*/
goog.declareModuleId('Blockly.ContextMenu');

/* eslint-disable-next-line no-unused-vars */
import {Block} from './block.js';
/* eslint-disable-next-line no-unused-vars */
Expand Down
2 changes: 2 additions & 0 deletions core/contextmenu_items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Registers default context menu items.
* @namespace Blockly.ContextMenuItems
*/
goog.declareModuleId('Blockly.ContextMenuItems');

/* eslint-disable-next-line no-unused-vars */
import {BlockSvg} from './block_svg.js';
import * as clipboard from './clipboard.js';
Expand Down
1 change: 1 addition & 0 deletions core/contextmenu_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Registry for context menu option items.
* @class
*/
goog.declareModuleId('Blockly.ContextMenuRegistry');

/* eslint-disable-next-line no-unused-vars */
import {BlockSvg} from './block_svg.js';
Expand Down
1 change: 1 addition & 0 deletions core/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Inject Blockly's CSS synchronously.
* @namespace Blockly.Css
*/
goog.declareModuleId('Blockly.Css');

import * as deprecation from './utils/deprecation.js';

Expand Down
1 change: 1 addition & 0 deletions core/delete_area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* bubble that is dropped on top of it.
* @class
*/
goog.declareModuleId('Blockly.DeleteArea');

import {BlockSvg} from './block_svg.js';
import {DragTarget} from './drag_target.js';
Expand Down
1 change: 1 addition & 0 deletions core/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Wrapper functions around JS functions for showing alert/confirmation dialogs.
* @namespace Blockly.dialog
*/
goog.declareModuleId('Blockly.dialog');

let alertImplementation = function(
message: AnyDuringMigration, opt_callback: AnyDuringMigration) {
Expand Down
1 change: 1 addition & 0 deletions core/drag_target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* block or bubble is dragged over or dropped on top of it.
* @class
*/
goog.declareModuleId('Blockly.DragTarget');

/* eslint-disable-next-line no-unused-vars */
import {IDragTarget} from './interfaces/i_drag_target.js';
Expand Down
2 changes: 2 additions & 0 deletions core/dropdowndiv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* A div that floats on top of the workspace, for drop-down menus.
* @class
*/
goog.declareModuleId('Blockly.dropDownDiv');

/* eslint-disable-next-line no-unused-vars */
import {BlockSvg} from './block_svg.js';
import * as common from './common.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Events fired as a result of actions in Blockly's editor.
* @namespace Blockly.Events
*/
goog.declareModuleId('Blockly.Events');

import * as deprecation from '../utils/deprecation.js';

Expand Down
1 change: 1 addition & 0 deletions core/events/events_abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Blockly's editor.
* @class
*/
goog.declareModuleId('Blockly.Events.Abstract');

/* eslint-disable-next-line no-unused-vars */
import {Workspace} from '../workspace.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_block_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Base class for all types of block events.
* @class
*/
goog.declareModuleId('Blockly.Events.BlockBase');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_block_change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for a block change event.
* @class
*/
goog.declareModuleId('Blockly.Events.BlockChange');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_block_create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for a block creation event.
* @class
*/
goog.declareModuleId('Blockly.Events.BlockCreate');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_block_delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for a block delete event.
* @class
*/
goog.declareModuleId('Blockly.Events.BlockDelete');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_block_drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Events fired as a block drag.
* @class
*/
goog.declareModuleId('Blockly.Events.BlockDrag');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_block_move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for a block move event.
* @class
*/
goog.declareModuleId('Blockly.Events.BlockMove');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_bubble_open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Events fired as a result of bubble open.
* @class
*/
goog.declareModuleId('Blockly.Events.BubbleOpen');

/* eslint-disable-next-line no-unused-vars */
import {BlockSvg} from '../block_svg.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Events fired as a result of UI click in Blockly's editor.
* @class
*/
goog.declareModuleId('Blockly.Events.Click');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_comment_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Base class for comment events.
* @class
*/
goog.declareModuleId('Blockly.Events.CommentBase');

import * as utilsXml from '../utils/xml.js';
/* eslint-disable-next-line no-unused-vars */
Expand Down
1 change: 1 addition & 0 deletions core/events/events_comment_change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for comment change event.
* @class
*/
goog.declareModuleId('Blockly.Events.CommentChange');

import * as registry from '../registry.js';
/* eslint-disable-next-line no-unused-vars */
Expand Down
1 change: 1 addition & 0 deletions core/events/events_comment_create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for comment creation event.
* @class
*/
goog.declareModuleId('Blockly.Events.CommentCreate');

import * as registry from '../registry.js';
/* eslint-disable-next-line no-unused-vars */
Expand Down
1 change: 1 addition & 0 deletions core/events/events_comment_delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for comment deletion event.
* @class
*/
goog.declareModuleId('Blockly.Events.CommentDelete');

import * as registry from '../registry.js';
/* eslint-disable-next-line no-unused-vars */
Expand Down
1 change: 1 addition & 0 deletions core/events/events_comment_move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Class for comment move event.
* @class
*/
goog.declareModuleId('Blockly.Events.CommentMove');

import * as registry from '../registry.js';
import {Coordinate} from '../utils/coordinate.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_marker_move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Events fired as a result of a marker move.
* @class
*/
goog.declareModuleId('Blockly.Events.MarkerMove');

/* eslint-disable-next-line no-unused-vars */
import {Block} from '../block.js';
Expand Down
1 change: 1 addition & 0 deletions core/events/events_selected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Events fired as a result of element select action.
* @class
*/
goog.declareModuleId('Blockly.Events.Selected');

import * as registry from '../registry.js';

Expand Down
1 change: 1 addition & 0 deletions core/events/events_theme_change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Events fired as a result of a theme update.
* @class
*/
goog.declareModuleId('Blockly.Events.ThemeChange');

import * as registry from '../registry.js';

Expand Down
Loading

0 comments on commit 1a0e140

Please sign in to comment.