function updateShape_() {
      // Add new inputs.
      for (var i = 0; i < this.itemCount_; i++) {
        if (!this.getInput('GENERATOR' + i)) {
          var input = this.appendValueInput('GENERATOR' + i);

          if (i === 0) {
            input.setCheck("ComprehensionFor");
          } else {
            input.setCheck(["ComprehensionFor", "ComprehensionIf"]);
          }

          this.moveInputBefore('GENERATOR' + i, 'END_BRACKET');
        }
      } // Remove deleted inputs.


      while (this.getInput('GENERATOR' + i)) {
        this.removeInput('GENERATOR' + i);
        i++;
      }
    }
/**
     * Modify this block to have the correct number of inputs.
     * @private
     * @this Blockly.Block
     */
Modify this block to have the correct number of inputs.
Modify this block to have the correct number of inputs .
function updateShape_() {
      for (var i = 0; i < this.itemCount_; i++) {
        if (!this.getInput('GENERATOR' + i)) {
          var input = this.appendValueInput('GENERATOR' + i);
          if (i === 0) {
            input.setCheck("ComprehensionFor");
          } else {
            input.setCheck(["ComprehensionFor", "ComprehensionIf"]);
          }
          this.moveInputBefore('GENERATOR' + i, 'END_BRACKET');
        }
      } 
      while (this.getInput('GENERATOR' + i)) {
        this.removeInput('GENERATOR' + i);
        i++;
      }
    }
function updateShape_ ( ) { for ( var i = 0 ; i < this . itemCount_ ; i ++ ) { if ( ! this . getInput ( 'GENERATOR' + i ) ) { var input = this . appendValueInput ( 'GENERATOR' + i ) ; if ( i === 0 ) { input . setCheck ( "ComprehensionFor" ) ; } else { input . setCheck ( [ "ComprehensionFor" , "ComprehensionIf" ] ) ; } this . moveInputBefore ( 'GENERATOR' + i , 'END_BRACKET' ) ; } } while ( this . getInput ( 'GENERATOR' + i ) ) { this . removeInput ( 'GENERATOR' + i ) ; i ++ ; } }
Modify this block to have the correct number of inputs.
Modify this block to have the correct number of inputs .
// Add new inputs. // Remove deleted inputs.