* Fetches the block attached to the named input. * * @param name The name of the input. * @returns The attached value block, or null if the input is either * disconnected or if the input does not exist.
(name: string)
| 2323 | * disconnected or if the input does not exist. |
| 2324 | */ |
| 2325 | getInputTargetBlock(name: string): Block | null { |
| 2326 | const input = this.getInput(name); |
| 2327 | return input && input.connection && input.connection.targetBlock(); |
| 2328 | } |
| 2329 | |
| 2330 | /** |
| 2331 | * Returns the comment on this block (or null if there is no comment). |
no test coverage detected