MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / getFields

Method getFields

packages/blockly/core/block.ts:1152–1158  ·  view source on GitHub ↗

* Returns a generator that provides every field on the block. * * @returns A generator that can be used to iterate the fields on the block.

()

Source from the content-addressed store, hash-verified

1150 * @returns A generator that can be used to iterate the fields on the block.
1151 */
1152 *getFields(): Generator<Field, undefined, void> {
1153 for (const input of this.inputList) {
1154 for (const field of input.fieldRow) {
1155 yield field;
1156 }
1157 }
1158 }
1159
1160 /**
1161 * Return all variables referenced by this block.

Callers 15

setEditableMethod · 0.95
getFieldMethod · 0.95
getVarModelsMethod · 0.95
updateVarNameMethod · 0.95
renameVarByIdMethod · 0.95
lookUpFocusableNodeMethod · 0.80
applyColourMethod · 0.80
allFieldsToDomFunction · 0.80
isFullBlockFieldFunction · 0.80
onHtmlInputKeyDown_Function · 0.80
saveFieldsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected