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.


static createTopNode(block: Block): ASTNode | null;


Parameter Type Description
block Block The block to find the top most AST node on.


ASTNode | null

The AST node holding the top most position on the block.