blockly > Zablokuj > getSurroundParent

Metoda Block.getSurroundParent()

Return the parent block that surrounds the current block, or null if this block has no surrounding block. Blok nadrzędny może być po prostu poprzednią instrukcją, natomiast otaczający go blok to instrukcja if, pętla itp.

Podpis:

getSurroundParent(): this | null;

Zwraca:

ten | null

Blok (jeśli występuje) otaczający bieżącą bryłę.