blockly > Bloquer > getSurroundParent

Méthode Block.getSurroundParent()

Return the parent block that surrounds the current block, or null if this block has no surrounding block. Un bloc parent peut simplement être l'instruction précédente, tandis que le bloc qui l'entoure est une instruction if, une boucle, etc.

Signature :

getSurroundParent(): this | null;

Renvoie :

cette | nulle

Bloc (le cas échéant) entourant le bloc actuel.