From 4fca16730cd8e9fed77138afb47b74a9555fa5bb Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Fri, 5 Apr 2019 11:59:05 -0700 Subject: [PATCH] core/generator.js --- core/generator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/generator.js b/core/generator.js index b5a794959..dfe385f7c 100644 --- a/core/generator.js +++ b/core/generator.js @@ -275,6 +275,8 @@ Blockly.Generator.prototype.valueToCode = function(block, name, outerOrder) { /** * Generate code representing the statement. Indent the code. + * This is mainly used in generators. When trying to generate code to run look + * at using workspaceToCode and 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.