First pass at creating connectionTypes and inputTYpes

This commit is contained in:
Rachel Fenichel
2021-02-26 14:43:17 -08:00
parent a77f429ba0
commit 750b62030b
30 changed files with 301 additions and 170 deletions

View File

@@ -13,6 +13,7 @@
goog.provide('Blockly.Dart');
goog.require('Blockly.Generator');
goog.require('Blockly.inputTypes');
goog.require('Blockly.utils.string');
@@ -219,7 +220,7 @@ Blockly.Dart.scrub_ = function(block, code, opt_thisOnly) {
// Collect comments for all value arguments.
// Don't collect comments for nested statements.
for (var i = 0; i < block.inputList.length; i++) {
if (block.inputList[i].type == Blockly.INPUT_VALUE) {
if (block.inputList[i].type == Blockly.inputTypes.VALUE) {
var childBlock = block.inputList[i].connection.targetBlock();
if (childBlock) {
comment = Blockly.Dart.allNestedComments(childBlock);