blockly > ASTNode > getLocation
ASTNode.getLocation() method
Gets the value pointed to by this node. It is the callers responsibility to check the node type to figure out what type of object they get back from this.
Signature:
getLocation(): IASTNodeLocation;
Returns:
The current field, connection, workspace, or block the cursor is on.