blockly > ASTNode > createTopNode

Metode ASTNode.createTopNode()

Membuat node AST untuk posisi teratas pada blok. Koneksi ini bisa berupa koneksi output, koneksi sebelumnya, atau blok.

Tanda Tangan:

static createTopNode(block: Block): ASTNode | null;

Parameter

Parameter Jenis Deskripsi
memblokir Blokir Blok untuk menemukan node AST paling atas.

Hasil:

ASTNode | null

{i>Node<i} AST yang memegang posisi paling atas pada blok.