Merge pull request #2366 from alschmiedt/Documentation_Update

Documentation update
This commit is contained in:
Rachel Fenichel
2019-04-22 14:45:38 -07:00
committed by GitHub

View File

@@ -274,7 +274,10 @@ Blockly.Generator.prototype.valueToCode = function(block, name, outerOrder) {
};
/**
* Generate code representing the statement. Indent the code.
* Generate a code string representing the blocks attached to the named
* statement input. Indent the code.
* This is mainly used in generators. When trying to generate code to evaluate
* look at using workspaceToCode or blockToCode.
* @param {!Blockly.Block} block The block containing the input.
* @param {string} name The name of the input.
* @return {string} Generated code or '' if no blocks are connected.