blockly > BasicCursor > validNode_

BasicCursor.validNode_() method

Decides what nodes to traverse and which ones to skip. Currently, it skips output, stack and workspace nodes.

Signature:

protected validNode_(node: ASTNode | null): boolean;

Parameters

Parameter Type Description
node ASTNode | null The AST node to check whether it is valid.

Returns:

boolean

True if the node should be visited, false otherwise.