We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8955552 commit b83be46Copy full SHA for b83be46
src/blocks/mrc_class_method_def.ts
@@ -188,7 +188,9 @@ const CLASS_METHOD_DEF = {
188
nameField.setValidator(this.mrcNameFieldValidator.bind(this, nameField));
189
} else {
190
input.insertFieldAt(0, createFieldNonEditableText(name), FIELD_METHOD_NAME);
191
- // To call setMutator(null), this must be casted to BlockSvg.
+ // Block.setMutator is defined as setMutator(_mutator: MutatorIcon) and BlockSvg.setMutator
192
+ // is defined as setMutator(mutator: MutatorIcon | null).
193
+ // Therefore, to call setMutator(null), this must be casted to BlockSvg.
194
if (this.rendered) {
195
(this as unknown as Blockly.BlockSvg).setMutator(null);
196
}
0 commit comments