blockly > ASTNode > getSourceBlock
ASTNode.getSourceBlock() method
Finds the source block of the location of this node.
Signature:
getSourceBlock(): Block | null;
Returns:
Block | null
The source block of the location, or null if the node is of type workspace.