function init() {
      this.setStyle('loop_blocks');
      this.setColour(BlockMirrorTextToBlocks.COMP_SETTINGS[kind].color);
      this.itemCount_ = 3;
      var input = this.appendValueInput("ELT").appendField(BlockMirrorTextToBlocks.COMP_SETTINGS[kind].start);

      if (kind === 'DictComp') {
        input.setCheck('DictPair');
      }

      this.appendDummyInput("END_BRACKET").appendField(BlockMirrorTextToBlocks.COMP_SETTINGS[kind].end);
      this.updateShape_();
      this.setOutput(true);
      this.setMutator(new Blockly.Mutator(['ast_Comp_create_with_for', 'ast_Comp_create_with_if']));
    }
/**
     * Block for creating a dict with any number of elements of any type.
     * @this Blockly.Block
     */
Block for creating a dict with any number of elements of any type.
Block for creating a dict with any number of elements of any type .
function init() {
      this.setStyle('loop_blocks');
      this.setColour(BlockMirrorTextToBlocks.COMP_SETTINGS[kind].color);
      this.itemCount_ = 3;
      var input = this.appendValueInput("ELT").appendField(BlockMirrorTextToBlocks.COMP_SETTINGS[kind].start);
      if (kind === 'DictComp') {
        input.setCheck('DictPair');
      }
      this.appendDummyInput("END_BRACKET").appendField(BlockMirrorTextToBlocks.COMP_SETTINGS[kind].end);
      this.updateShape_();
      this.setOutput(true);
      this.setMutator(new Blockly.Mutator(['ast_Comp_create_with_for', 'ast_Comp_create_with_if']));
    }
function init ( ) { this . setStyle ( 'loop_blocks' ) ; this . setColour ( BlockMirrorTextToBlocks . COMP_SETTINGS [ kind ] . color ) ; this . itemCount_ = 3 ; var input = this . appendValueInput ( "ELT" ) . appendField ( BlockMirrorTextToBlocks . COMP_SETTINGS [ kind ] . start ) ; if ( kind === 'DictComp' ) { input . setCheck ( 'DictPair' ) ; } this . appendDummyInput ( "END_BRACKET" ) . appendField ( BlockMirrorTextToBlocks . COMP_SETTINGS [ kind ] . end ) ; this . updateShape_ ( ) ; this . setOutput ( true ) ; this . setMutator ( new Blockly . Mutator ( [ 'ast_Comp_create_with_for' , 'ast_Comp_create_with_if' ] ) ) ; }
Block for creating a dict with any number of elements of any type.
Block for creating a dict with any number of elements of any type .