Function: findLegalName()
function findLegalName(name, block): string;
Defined in: packages/blockly/core/procedures.ts:128
Ensure two identically-named procedures don't exist. Take the proposed procedure name, and return a legal name i.e. one that is not empty and doesn't collide with other procedures.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Proposed procedure name. |
block | Block | Block to disambiguate. |
Returns
string
Non-colliding name.