blockly > ASTNode > createTopNode
ASTNode.createTopNode() method
Creates an AST node for the top position on a block. This is either an output connection, previous connection, or block.
Signature:
static createTopNode(block: Block): ASTNode | null;
Parameters
Parameter | Type | Description |
---|---|---|
block | Block | The block to find the top most AST node on. |
Returns:
ASTNode | null
The AST node holding the top most position on the block.