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

blockly > ASTNode > createConnectionNode

ASTNode.createConnectionNode() method

Creates an AST node pointing to a connection. If the connection has a parent input then create an AST node of type input that will hold the connection.


static createConnectionNode(connection: Connection): ASTNode | null;


Parameter Type Description
connection Connection This is the connection the node will point to.


ASTNode | null

An AST node pointing to a connection.