blockly > ASTNode > next

ASTNode.next() method

Find the element to the right of the current element in the AST.

Signature:

next(): ASTNode | null;

Returns:

ASTNode | null

An AST node that wraps the next field, connection, block, or workspace. Or null if there is no node to the right.