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.
Signature:
static createConnectionNode(connection: Connection): ASTNode | null;
Parameters
Parameter |
Type |
Description |
connection |
Connection |
This is the connection the node will point to. |
Returns:
ASTNode | null
An AST node pointing to a connection.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `ASTNode.createConnectionNode()` method creates an AST node that references a specific connection within a Blockly workspace."],["If the target connection is part of a parent input, the method generates an input-type AST node to encapsulate the connection."],["The method accepts a `Connection` object as input, representing the connection to be associated with the new AST node."],["An `ASTNode` object, or `null` if node creation fails, is returned by the method, representing the created node pointing to the connection."]]],[]]