blockly > ASTNode > createConnectionNode
Metoda ASTNode.createConnectionNode()
Tworzy węzeł AST wskazujący połączenie. Jeśli połączenie ma dane wejściowe nadrzędne, utwórz węzeł AST typu wejściowego, który będzie przechowywać połączenie.
Podpis:
static createConnectionNode(connection: Connection): ASTNode | null;
Parametry
Parametr |
Typ |
Opis |
połączenie |
Połączenie |
To połączenie będzie wskazywać węzeł. |
Zwroty:
ASTNode | wartość null
Węzeł AST wskazujący połączenie.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-11 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-11 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."]]],[]]