8000 fix!: delete IASTNodeLocation and friends by rachel-fenichel · Pull Request #9015 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix!: delete IASTNodeLocation and friends #9015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions core/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {EndRowInput} from './inputs/end_row_input.js';
import {Input} from './inputs/input.js';
import {StatementInput} from './inputs/statement_input.js';
import {ValueInput} from './inputs/value_input.js';
import type {IASTNodeLocation} from './interfaces/i_ast_node_location.js';
import {isCommentIcon} from './interfaces/i_comment_icon.js';
import {type IIcon} from './interfaces/i_icon.js';
import type {
Expand All @@ -61,7 +60,7 @@ import type {Workspace} from './workspace.js';
* Class for one block.
* Not normally called directly, workspace.newBlock() is preferred.
*/
export class Block implements IASTNodeLocation {
export class Block {
/**
* An optional callback method to use whenever the block's parent workspace
* changes. This is usually only called from the constructor, the block type
Expand Down
2 changes: 0 additions & 2 deletions core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import {IconType} from './icons/icon_types.js';
import {MutatorIcon} from './icons/mutator_icon.js';
import {WarningIcon} from './icons/warning_icon.js';
import type {Input} from './inputs/input.js';
import type {IASTNodeLocationSvg} from './interfaces/i_ast_node_location_svg.js';
import type {IBoundedElement} from './interfaces/i_bounded_element.js';
import {IContextMenu} from './interfaces/i_contextmenu.js';
import type {ICopyable} from './interfaces/i_copyable.js';
Expand Down Expand Up @@ -74,7 +73,6 @@ import type {WorkspaceSvg} from './workspace_svg.js';
export class BlockSvg
extends Block
implements
IASTNodeLocationSvg,
IBoundedElement,
IContextMenu,
ICopyable<BlockCopyData>,
Expand Down
6 changes: 0 additions & 6 deletions core/blockly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ import {FocusableTreeTraverser} from './utils/focusable_tree_traverser.js';

import {Input} from './inputs/input.js';
import {InsertionMarkerPreviewer} from './insertion_marker_previewer.js';
import {IASTNodeLocation} from './interfaces/i_ast_node_location.js';
import {IASTNodeLocationSvg} from './interfaces/i_ast_node_location_svg.js';
import {IASTNodeLocationWithBlock} from './interfaces/i_ast_node_location_with_block.js';
import {IAutoHideable} from './interfaces/i_autohideable.js';
import {IBoundedElement} from './interfaces/i_bounded_element.js';
import {IBubble} from './interfaces/i_bubble.js';
Expand Down Expand Up @@ -541,9 +538,6 @@ export {
Gesture,
Grid,
HorizontalFlyout,
IASTNodeLocation,
IASTNodeLocationSvg,
IASTNodeLocationWithBlock,
IAutoHideable,
IBoundedElement,
IBubble,
Expand Down
3 changes: 1 addition & 2 deletions core/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import type {BlockMove} from './events/events_block_move.js';
import {EventType} from './events/type.js';
import * as eventUtils from './events/utils.js';
import type {Input} from './inputs/input.js';
import type {IASTNodeLocationWithBlock} from './interfaces/i_ast_node_location_with_block.js';
import type {IConnectionChecker} from './interfaces/i_connection_checker.js';
import * as blocks from './serialization/blocks.js';
import {idGenerator} from './utils.js';
Expand All @@ -26,7 +25,7 @@ import * as Xml from './xml.js';
/**
* Class for a connection between blocks.
*/
export class Connection implements IASTNodeLocationWithBlock {
export class Connection {
/** Constants for checking whether two connections are compatible. */
static CAN_CONNECT = 0;
static REASON_SELF_CONNECTION = 1;
Expand Down
4 changes: 0 additions & 4 deletions core/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import * as dropDownDiv from './dropdowndiv.js';
import {EventType} from './events/type.js';
import * as eventUtils from './events/utils.js';
import type {Input} from './inputs/input.js';
import type {IASTNodeLocationSvg} from './interfaces/i_ast_node_location_svg.js';
import type {IASTNodeLocationWithBlock} from './interfaces/i_ast_node_location_with_block.js';
import type {IFocusableNode} from './interfaces/i_focusable_node.js';
import type {IFocusableTree} from './interfaces/i_focusable_tree.js';
import type {IKeyboardAccessible} from './interfaces/i_keyboard_accessible.js';
Expand Down Expand Up @@ -71,8 +69,6 @@ export type FieldValidator<T = any> = (newValue: T) => T | null | undefined;
*/
export abstract class Field<T = any>
implements
IASTNodeLocationSvg,
IASTNodeLocationWithBlock,
IKeyboardAccessible,
IRegistrable,
ISerializable,
Expand Down
2 changes: 0 additions & 2 deletions core/flyout_button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
// Former goog.module ID: Blockly.FlyoutButton

import type {IASTNodeLocationSvg} from './blockly.js';
import * as browserEvents from './browser_events.js';
import * as Css from './css.js';
import type {IBoundedElement} from './interfaces/i_bounded_element.js';
Expand All @@ -34,7 +33,6 @@ import type {WorkspaceSvg} from './workspace_svg.js';
*/
export class FlyoutButton
implements
IASTNodeLocationSvg,
IBoundedElement,
IRenderedElement,
IFocusableNode,
Expand Down
12 changes: 0 additions & 12 deletions core/interfaces/i_ast_node_location.ts

This file was deleted.

14 changes: 0 additions & 14 deletions core/interfaces/i_ast_node_location_svg.ts

This file was deleted.

22 changes: 0 additions & 22 deletions core/interfaces/i_ast_node_location_with_block.ts

This file was deleted.

3 changes: 1 addition & 2 deletions core/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import * as common from './common.js';
import type {ConnectionDB} from './connection_db.js';
import type {Abstract} from './events/events_abstract.js';
import * as eventUtils from './events/utils.js';
import type {IASTNodeLocation} from './interfaces/i_ast_node_location.js';
import type {IConnectionChecker} from './interfaces/i_connection_checker.js';
import {IProcedureMap} from './interfaces/i_procedure_map.js';
import type {IVariableMap} from './interfaces/i_variable_map.js';
Expand All @@ -43,7 +42,7 @@ import {deleteVariable, getVariableUsesById} from './variables.js';
* Class for a workspace. This is a data structure that contains blocks.
* There is no UI, and can be created headlessly.
*/
export class Workspace implements IASTNodeLocation {
export class Workspace {
/**
* Angle away from the horizontal to sweep for blocks. Order of execution is
* generally top to bottom, but a small angle changes the scan to give a bit
Expand Down
2 changes: 0 additions & 2 deletions core/workspace_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import type {FlyoutButton} from './flyout_button.js';
import {getFocusManager} from './focus_manager.js';
import {Gesture} from './gesture.js';
import {Grid} from './grid.js';
import type {IASTNodeLocationSvg} from './interfaces/i_ast_node_location_svg.js';
import {isAutoHideable} from './interfaces/i_autohideable.js';
import type {IBoundedElement} from './interfaces/i_bounded_element.js';
import {IContextMenu} from './interfaces/i_contextmenu.js';
Expand Down Expand Up @@ -101,7 +100,6 @@ const ZOOM_TO_FIT_MARGIN = 20;
export class WorkspaceSvg
extends Workspace
implements
IASTNodeLocationSvg,
IContextMenu,
IFocusableNode,
IFocusableTree,
Expand Down
0