blockly > Blocca > getSurroundParent

Metodo Block.getSurroundParent()

Return the parent block that surrounds the current block, or null if this block has no surrounding block. Un blocco padre potrebbe essere solo l'istruzione precedente, mentre il blocco circostante è un'istruzione if, loop many e così via.

Firma:

getSurroundParent(): this | null;

Resi:

questo | null

L'eventuale blocco che lo circonda.