blockly > Block > getSurroundParent
Método Block.getSurroundParent()
Return the parent block that surrounds the current block, or null if this block has no surrounding block. Um bloco pai pode ser apenas a instrução anterior, enquanto o bloco ao redor é uma instrução if, manter uma repetição etc.
Signature:
getSurroundParent(): this | null;
Retorna:
este | nulo
O bloco (se houver) que envolve o bloco atual.