Function: getDefinition()
function getDefinition(name, workspace): Block | null;
Defined in: packages/blockly/core/procedures.ts:462
Find the definition block for the named procedure.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Name of procedure. |
workspace | Workspace | The workspace to search. |
Returns
Block | null
The procedure definition block, or null not found.