mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
* chore: revert #5730 * fix: Fix compile failure due to incorrect visibility The CONTROL_FLOW_IN_LOOP_CHECK_MIXIN is intended to be used outside of blocks/ (it is, in particular, used in generators/) so it should have been marked @public from the beginning.
This commit is contained in:
@@ -152,7 +152,7 @@ Blockly.Dart['controls_flow_statements'] = function(block) {
|
||||
xfix += Blockly.Dart.injectId(Blockly.Dart.STATEMENT_SUFFIX, block);
|
||||
}
|
||||
if (Blockly.Dart.STATEMENT_PREFIX) {
|
||||
const loop = Blockly.loopMixin
|
||||
const loop = Blockly.Constants.Loops
|
||||
.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN.getSurroundLoop(block);
|
||||
if (loop && !loop.suppressPrefixSuffix) {
|
||||
// Inject loop's statement prefix here since the regular one at the end
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
goog.provide('Blockly.JavaScript.loops');
|
||||
|
||||
goog.require('Blockly.Constants.Loops');
|
||||
goog.require('Blockly.JavaScript');
|
||||
goog.require('Blockly.loopMixin');
|
||||
goog.require('Blockly.utils.string');
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ Blockly.JavaScript['controls_flow_statements'] = function(block) {
|
||||
block);
|
||||
}
|
||||
if (Blockly.JavaScript.STATEMENT_PREFIX) {
|
||||
const loop = Blockly.loopMixin
|
||||
const loop = Blockly.Constants.Loops
|
||||
.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN.getSurroundLoop(block);
|
||||
if (loop && !loop.suppressPrefixSuffix) {
|
||||
// Inject loop's statement prefix here since the regular one at the end
|
||||
|
||||
@@ -156,7 +156,7 @@ Blockly.Lua['controls_flow_statements'] = function(block) {
|
||||
xfix += Blockly.Lua.injectId(Blockly.Lua.STATEMENT_SUFFIX, block);
|
||||
}
|
||||
if (Blockly.Lua.STATEMENT_PREFIX) {
|
||||
const loop = Blockly.loopMixin
|
||||
const loop = Blockly.Constants.Loops
|
||||
.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN.getSurroundLoop(block);
|
||||
if (loop && !loop.suppressPrefixSuffix) {
|
||||
// Inject loop's statement prefix here since the regular one at the end
|
||||
|
||||
@@ -153,7 +153,7 @@ Blockly.PHP['controls_flow_statements'] = function(block) {
|
||||
xfix += Blockly.PHP.injectId(Blockly.PHP.STATEMENT_SUFFIX, block);
|
||||
}
|
||||
if (Blockly.PHP.STATEMENT_PREFIX) {
|
||||
const loop = Blockly.loopMixin
|
||||
const loop = Blockly.Constants.Loops
|
||||
.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN.getSurroundLoop(block);
|
||||
if (loop && !loop.suppressPrefixSuffix) {
|
||||
// Inject loop's statement prefix here since the regular one at the end
|
||||
|
||||
@@ -197,7 +197,7 @@ Blockly.Python['controls_flow_statements'] = function(block) {
|
||||
xfix += Blockly.Python.injectId(Blockly.Python.STATEMENT_SUFFIX, block);
|
||||
}
|
||||
if (Blockly.Python.STATEMENT_PREFIX) {
|
||||
const loop = Blockly.loopMixin
|
||||
const loop = Blockly.Constants.Loops
|
||||
.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN.getSurroundLoop(block);
|
||||
if (loop && !loop.suppressPrefixSuffix) {
|
||||
// Inject loop's statement prefix here since the regular one at the end
|
||||
|
||||
Reference in New Issue
Block a user