blockly > ASTNode > getSourceBlock

ASTNode.getSourceBlock()-Methode

Findet den Quellblock des Standorts dieses Knotens.

Unterschrift:

getSourceBlock(): Block | null;

Gibt zurück:

Blockieren | null

Der Quellblock des Standorts oder null, wenn der Knoten vom Typ „workspace“ ist.