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

Method getInput

packages/blockly/core/block.ts:2308–2316  ·  view source on GitHub ↗

* Fetches the named input object. * * @param name The name of the input. * @returns The input object, or null if input does not exist.

(name: string)

Source from the content-addressed store, hash-verified

2306 * @returns The input object, or null if input does not exist.
2307 */
2308 getInput(name: string): Input | null {
2309 for (let i = 0, input; (input = this.inputList[i]); i++) {
2310 if (input.name === name) {
2311 return input;
2312 }
2313 }
2314 // This input does not exist.
2315 return null;
2316 }
2317
2318 /**
2319 * Fetches the block attached to the named input.

Callers 15

getInputTargetBlockMethod · 0.95
updateCollapsedMethod · 0.80
valueToCodeMethod · 0.80
statementToCodeMethod · 0.80
applyInputTagNodesFunction · 0.80
reconnectMethod · 0.80
loadInputBlocksFunction · 0.80
runMethod · 0.80
text.tsFile · 0.80
lists.tsFile · 0.80
math.tsFile · 0.80
procedures.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected