Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > IASTNodeLocationWithBlock > getSourceBlock
Metode IASTNodeLocationWithBlock.getSourceBlock()
Dapatkan blok sumber yang terkait dengan node ini.
Tanda Tangan:
getSourceBlock(): Block | null;
Hasil:
Blokir | null (kosong)
Blok sumber.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-21 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-21 UTC."],[[["The `getSourceBlock()` method retrieves the Blockly block associated with a specific node."],["If a source block exists for the node, it is returned; otherwise, `null` is returned."],["This method is part of the `IASTNodeLocationWithBlock` interface, which extends the functionality of node locations in Blockly."]]],[]]