研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >ASTNode >createConnectionNode
ASTNode.createConnectionNode() 方法
创建指向连接的 AST 节点。如果连接具有父输入,则创建一个输入类型的 AST 节点来保持连接。
Signature:
static createConnectionNode(connection: Connection): ASTNode | null;
参数
参数 |
类型 |
说明 |
连接 |
连接 |
这是节点将指向的连接。 |
返回:
ASTNode |null
指向连接的 AST 节点。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-11。
[null,null,["最后更新时间 (UTC):2024-09-11。"],[[["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."]]],[]]