mirror of
https://github.com/google/blockly.git
synced 2026-01-06 00:20:37 +01:00
Block generator warnings (#3353)
This commit is contained in:
@@ -114,7 +114,7 @@ Blockly.Lua['lists_indexOf'] = function(block) {
|
||||
* @param {string} listName Name of the list, used to calculate length.
|
||||
* @param {string} where The method of indexing, selected by dropdown in Blockly
|
||||
* @param {string=} opt_at The optional offset when indexing from start/end.
|
||||
* @return {string} Index expression.
|
||||
* @return {string|undefined} Index expression.
|
||||
* @private
|
||||
*/
|
||||
Blockly.Lua.lists.getIndex_ = function(listName, where, opt_at) {
|
||||
@@ -374,6 +374,6 @@ Blockly.Lua['lists_reverse'] = function(block) {
|
||||
' end',
|
||||
' return reversed',
|
||||
'end']);
|
||||
var code = 'list_reverse(' + list + ')';
|
||||
var code = functionName + '(' + list + ')';
|
||||
return [code, Blockly.Lua.ORDER_HIGH];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user