Skip to content

Commit 93b5be4

Browse files
authored
Merge pull request #4002 from google/rc_2020_6
Rc 2020 6
2 parents 52b818e + a1727b1 commit 93b5be4

File tree

415 files changed

+25188
-20840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+25188
-20840
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*_uncompressed*.js
33
gulpfile.js
44
/msg/*
5+
/dist/*
56
/core/utils/global.js
67
/tests/blocks/*
78
/tests/themes/*

blockly_compressed.js

Lines changed: 346 additions & 324 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blockly_compressed.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blockly_uncompressed.js

Lines changed: 27 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blocks/procedures.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,14 @@ Blockly.Blocks['procedures_callnoreturn'] = {
805805
}
806806
this.setProcedureParameters_(args, paramIds);
807807
},
808+
/**
809+
* Return all variables referenced by this block.
810+
* @return {!Array.<string>} List of variable names.
811+
* @this {Blockly.Block}
812+
*/
813+
getVars: function() {
814+
return this.arguments_;
815+
},
808816
/**
809817
* Return all variables referenced by this block.
810818
* @return {!Array.<!Blockly.VariableModel>} List of variable models.
@@ -836,7 +844,7 @@ Blockly.Blocks['procedures_callnoreturn'] = {
836844
var name = this.getProcedureCall();
837845
var def = Blockly.Procedures.getDefinition(name, this.workspace);
838846
if (def && (def.type != this.defType_ ||
839-
JSON.stringify(def.arguments_) != JSON.stringify(this.arguments_))) {
847+
JSON.stringify(def.getVars()) != JSON.stringify(this.arguments_))) {
840848
// The signatures don't match.
841849
def = null;
842850
}
@@ -959,6 +967,7 @@ Blockly.Blocks['procedures_callreturn'] = {
959967
updateShape_: Blockly.Blocks['procedures_callnoreturn'].updateShape_,
960968
mutationToDom: Blockly.Blocks['procedures_callnoreturn'].mutationToDom,
961969
domToMutation: Blockly.Blocks['procedures_callnoreturn'].domToMutation,
970+
getVars: Blockly.Blocks['procedures_callnoreturn'].getVars,
962971
getVarModels: Blockly.Blocks['procedures_callnoreturn'].getVarModels,
963972
onchange: Blockly.Blocks['procedures_callnoreturn'].onchange,
964973
customContextMenu:

blocks_compressed.js

Lines changed: 22 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blocks_compressed.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)