From 1ca7d6a28bffd5f9be732c3389d6871677c799f4 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Mon, 22 Apr 2019 14:20:05 -0700 Subject: [PATCH] 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.