Skip to content

frontend / entities/blocks/convertBlocks / initConvertBlocks

Function: initConvertBlocks() ​

initConvertBlocks(generator, mode): void

Defined in: entities/blocks/convertBlocks.ts:17

Registers Python generators for conversion blocks on given generator instance.

Parameters ​

generator ​

PythonGenerator

Python generator which will get new block handlers.

mode ​

"display" | "execution"

Current mode of generator. Not used right now, kept for consistency with other init functions.

Returns ​

void