components/blockly-src/blocks/procedures.js
function() {
    var nameField = new Blockly.FieldTextInput(
        Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE,
        Blockly.Procedures.rename);
    nameField.setSpellcheck(false);
    this.appendDummyInput()
        .appendField(Blockly.Msg.PROCEDURES_DEFRETURN_TITLE)
        .appendField(nameField, 'NAME')
        .appendField('', 'PARAMS');
    this.appendValueInput('RETURN')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.PROCEDURES_DEFRETURN_RETURN);
    this.setMutator(new Blockly.Mutator(['procedures_mutatorarg']));
    if (Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT) {
      this.setCommentText(Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT);
    }
    this.setColour(Blockly.Blocks.procedures.HUE);
    this.setTooltip(Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP);
    this.setHelpUrl(Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL);
    this.arguments_ = [];
    this.setStatements_(true);
    this.statementConnection_ = null;
  }
function() {
    var nameField = new Blockly.FieldTextInput(
        Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE,
        Blockly.Procedures.rename);
    nameField.setSpellcheck(false);
    this.appendDummyInput()
        .appendField(Blockly.Msg.PROCEDURES_DEFRETURN_TITLE)
        .appendField(nameField, 'NAME')
        .appendField('', 'PARAMS');
    this.appendValueInput('RETURN')
        .setAlign(Blockly.ALIGN_RIGHT)
        .appendField(Blockly.Msg.PROCEDURES_DEFRETURN_RETURN);
    this.setMutator(new Blockly.Mutator(['procedures_mutatorarg']));
    if (Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT) {
      this.setCommentText(Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT);
    }
    this.setColour(Blockly.Blocks.procedures.HUE);
    this.setTooltip(Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP);
    this.setHelpUrl(Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL);
    this.arguments_ = [];
    this.setStatements_(true);
    this.statementConnection_ = null;
  }
function ( ) { var nameField = new Blockly . FieldTextInput ( Blockly . Msg . PROCEDURES_DEFRETURN_PROCEDURE , Blockly . Procedures . rename ) ; nameField . setSpellcheck ( false ) ; this . appendDummyInput ( ) . appendField ( Blockly . Msg . PROCEDURES_DEFRETURN_TITLE ) . appendField ( nameField , 'NAME' ) . appendField ( '' , 'PARAMS' ) ; this . appendValueInput ( 'RETURN' ) . setAlign ( Blockly . ALIGN_RIGHT ) . appendField ( Blockly . Msg . PROCEDURES_DEFRETURN_RETURN ) ; this . setMutator ( new Blockly . Mutator ( [ 'procedures_mutatorarg' ] ) ) ; if ( Blockly . Msg . PROCEDURES_DEFRETURN_COMMENT ) { this . setCommentText ( Blockly . Msg . PROCEDURES_DEFRETURN_COMMENT ) ; } this . setColour ( Blockly . Blocks . procedures . HUE ) ; this . setTooltip ( Blockly . Msg . PROCEDURES_DEFRETURN_TOOLTIP ) ; this . setHelpUrl ( Blockly . Msg . PROCEDURES_DEFRETURN_HELPURL ) ; this . arguments_ = [ ] ; this . setStatements_ ( true ) ; this . statementConnection_ = null ; }
Block for defining a procedure with a return value.
@this Blockly.Block
Block for defining a procedure with a return value .