Disallow deleting variables that are used in the definition of a function

This commit is contained in:
Rachel Fenichel
2016-08-11 17:06:07 -07:00
parent c7a5944ea3
commit 775e298c2c
5 changed files with 26 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
{
"@metadata": {
"author": "Ellen Spertus <ellen.spertus@gmail.com>",
"lastupdated": "2016-08-09 17:07:03.957507",
"lastupdated": "2016-08-11 17:04:14.955398",
"locale": "en",
"messagedocumentation" : "qqq"
},

View File

@@ -108,6 +108,8 @@ Blockly.Msg.RENAME_VARIABLE = 'Rename variable...';
Blockly.Msg.RENAME_VARIABLE_TITLE = 'Rename all "%1" variables to:';
/// confirm - Ask the user to confirm their deletion of multiple uses of a variable.
Blockly.Msg.DELETE_VARIABLE_CONFIRMATION = 'Delete %1 uses of the %2 variable?';
/// alert - Tell the user that they can't delete a variable because it's part of the definition of a procedure.
Blockly.Msg.CANNOT_DELETE_VARIABLE_PROCEDURE = 'Can\'t delete the variable \'%1\' because it is part of the definition of the procedure \'%2\'';
// Colour Blocks.
/// url - Information about colour.