Stay organized with collections Save and categorize content based on your preferences.

blockly > Procedures > allProcedures

Procedures.allProcedures() function

Find all user-created procedure definitions in a workspace.

Signature:

export declare function allProcedures(root: Workspace): [
    ProcedureTuple[],
    ProcedureTuple[]
];

Parameters

Parameter Type Description
root Workspace Root workspace.

Returns:

[ ProcedureTuple[], ProcedureTuple[] ]

Pair of arrays, the first contains procedures without return variables, the second with. Each procedure is defined by a three-element list of name, parameter list, and return value boolean.