blockly > Bloquear > getSurroundParent

Método Block.getSurroundParent()

Return the parent block that surrounds the current block, or null if this block has no surrounding block. Un bloque superior podría ser solo la instrucción anterior, mientras que el bloque que lo rodea es una instrucción if, while, etcétera.

Signature:

getSurroundParent(): this | null;

Devuelve:

esto | nulo

Es el bloque (si existe) que rodea al bloque actual.