components/blockly-src/blocks/variables.js
function() {
    this.setHelpUrl(Blockly.Msg.VARIABLES_GET_HELPURL);
    this.setColour(Blockly.Blocks.variables.HUE);
    this.appendDummyInput()
        .appendField(new Blockly.FieldVariable(
        Blockly.Msg.VARIABLES_DEFAULT_NAME), 'VAR');
    this.setOutput(true);
    this.setTooltip(Blockly.Msg.VARIABLES_GET_TOOLTIP);
    this.contextMenuMsg_ = Blockly.Msg.VARIABLES_GET_CREATE_SET;
  }
function() {
    this.setHelpUrl(Blockly.Msg.VARIABLES_GET_HELPURL);
    this.setColour(Blockly.Blocks.variables.HUE);
    this.appendDummyInput()
        .appendField(new Blockly.FieldVariable(
        Blockly.Msg.VARIABLES_DEFAULT_NAME), 'VAR');
    this.setOutput(true);
    this.setTooltip(Blockly.Msg.VARIABLES_GET_TOOLTIP);
    this.contextMenuMsg_ = Blockly.Msg.VARIABLES_GET_CREATE_SET;
  }
function ( ) { this . setHelpUrl ( Blockly . Msg . VARIABLES_GET_HELPURL ) ; this . setColour ( Blockly . Blocks . variables . HUE ) ; this . appendDummyInput ( ) . appendField ( new Blockly . FieldVariable ( Blockly . Msg . VARIABLES_DEFAULT_NAME ) , 'VAR' ) ; this . setOutput ( true ) ; this . setTooltip ( Blockly . Msg . VARIABLES_GET_TOOLTIP ) ; this . contextMenuMsg_ = Blockly . Msg . VARIABLES_GET_CREATE_SET ; }
Block for variable getter.
@this Blockly.Block
Block for variable getter .