This commit is contained in:
Rachel Fenichel
2020-07-14 17:02:28 -06:00
parent e24f3cef9b
commit 8ae3dc3d5e
4 changed files with 12 additions and 3 deletions

View File

@@ -32,7 +32,6 @@ goog.require('Blockly.utils.string');
goog.require('Blockly.Workspace');
goog.requireType('Blockly.IASTNodeLocation');
goog.requireType('Blockly.connectionTypeChecker');
/**

View File

@@ -494,6 +494,7 @@ Blockly.Connection.prototype.targetBlock = function() {
* @return {boolean} True if the connections share a type.
*/
Blockly.Connection.prototype.checkType = function(otherConnection) {
// TODO (fenichel): Add deprecation warnings.
return this.getConnectionTypeChecker().canConnect(this, otherConnection,
false);
};

View File

@@ -1,3 +1,14 @@
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview An object that encapsulates logic for checking whether a potential
* connection is safe and valid.
* @author fenichel@google.com (Rachel Fenichel)
*/
'use strict';
goog.provide('Blockly.ConnectionTypeChecker');

View File

@@ -16,8 +16,6 @@ goog.provide('Blockly.ConnectionDB');
goog.require('Blockly.RenderedConnection');
goog.requireType('Blockly.ConnectionTypeChecker');
/**
* Database of connections.