From 4fca16730cd8e9fed77138afb47b74a9555fa5bb Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Fri, 5 Apr 2019 11:59:05 -0700 Subject: [PATCH 1/4] 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. From 97d670c0ea1a1c3af742ad9faf187cf64d2e1c02 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Fri, 5 Apr 2019 12:00:04 -0700 Subject: [PATCH 2/4] Updates documentation --- core/generator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/generator.js b/core/generator.js index dfe385f7c..6244c06a6 100644 --- a/core/generator.js +++ b/core/generator.js @@ -275,8 +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. + * This is mainly used in generators. When trying to generate code to evaluate + * 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. From 98a1c06e7a681cfc0b8dd591daa7a0750cdc7522 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Mon, 8 Apr 2019 10:48:22 -0700 Subject: [PATCH 3/4] Changed jsdoc --- core/generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/generator.js b/core/generator.js index 6244c06a6..ae669964e 100644 --- a/core/generator.js +++ b/core/generator.js @@ -276,7 +276,7 @@ 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 evaluate - * look at using workspaceToCode and blockToCode. + * 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. From 1ca7d6a28bffd5f9be732c3389d6871677c799f4 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Mon, 22 Apr 2019 14:20:05 -0700 Subject: [PATCH 4/4] Clarifies what statementToCode does --- core/generator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/generator.js b/core/generator.js index ae669964e..fc7471b7d 100644 --- a/core/generator.js +++ b/core/generator.js @@ -274,7 +274,8 @@ 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.