Skip to content

Commit 561129a

Browse files
fix!: delete ASTNode and references (#9014)
1 parent b6b229e commit 561129a

File tree

4 files changed

+8
-365
lines changed

4 files changed

+8
-365
lines changed

core/blockly.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ import {
174174
import {IVariableMap} from './interfaces/i_variable_map.js';
175175
import {IVariableModel, IVariableState} from './interfaces/i_variable_model.js';
176176
import * as internalConstants from './internal_constants.js';
177-
import {ASTNode} from './keyboard_nav/ast_node.js';
178177
import {CursorOptions, LineCursor} from './keyboard_nav/line_cursor.js';
179178
import {Marker} from './keyboard_nav/marker.js';
180179
import type {LayerManager} from './layer_manager.js';
@@ -447,7 +446,6 @@ export * from './toast.js';
447446

448447
// Re-export submodules that no longer declareLegacyNamespace.
449448
export {
450-
ASTNode,
451449
Block,
452450
BlockSvg,
453451
BlocklyOptions,

core/keyboard_nav/ast_node.ts

Lines changed: 0 additions & 336 deletions
This file was deleted.

core/keyboard_nav/line_cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ export class LineCursor extends Marker {
540540
for (const node of nodes) {
541541
if (
542542
this.validNode(node) &&
543-
!this.toASTNode(node)?.getSourceBlock()?.disposed
543+
!this.getSourceBlockFromNode(node)?.disposed
544544
) {
545545
this.setCurNode(node);
546546
return;

0 commit comments

Comments
 (0)