blockly > Block > getSurroundParent

שיטת block.getSurroundParent()

Return the parent block that surrounds the current block, or null if this block has no surrounding block. חסימת הורה יכולה להיות רק ההצהרה הקודמת, ואילו הבלוק שמקיף אותה הוא הצהרת if, בעוד לולאה וכו'.

Signature:

getSurroundParent(): this | null;

החזרות:

זה | null

הבלוק (אם יש) שמקיף את הבלוק הנוכחי.