blockly > ASTNode > createConnectionNode
متد ()ASTNode.createConnectionNode
یک گره AST ایجاد می کند که به یک اتصال اشاره می کند. اگر اتصال دارای ورودی والد است، یک گره AST از نوع ورودی ایجاد کنید که اتصال را نگه می دارد.
امضا:
static createConnectionNode(connection: Connection): ASTNode | null;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
اتصال | اتصال | این همان اتصالی است که گره به آن اشاره خواهد کرد. |
برمیگرداند:
ASTNode | تهی
یک گره AST که به یک اتصال اشاره می کند.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],[]]