Stay organized with collections Save and categorize content based on your preferences.

blockly > ASTNode > createWorkspaceNode

ASTNode.createWorkspaceNode() method

Creates an AST node pointing to a workspace.

Signature:

static createWorkspaceNode(workspace: Workspace | null, wsCoordinate: Coordinate | null): ASTNode | null;

Parameters

Parameter Type Description
workspace Workspace | null The workspace that we are on.
wsCoordinate Coordinate | null The position on the workspace for this node.

Returns:

ASTNode | null

An AST node pointing to a workspace and a position on the workspace.