Stay organized with collections
Save and categorize content based on your preferences.
blockly > ASTNode > createBlockNode
ASTNode.createBlockNode() method
Creates an AST node pointing to a block.
Signature:
static createBlockNode(block: Block): ASTNode | null;
Parameters
Parameter |
Type |
Description |
block |
Block |
The block used to create an AST node. |
Returns:
ASTNode | null
An AST node pointing to a block.
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.createBlockNode()` method is a static method used to create an AST node that references a specific block."],["This method accepts a single argument, a Block object, which represents the block to be linked to the AST node."],["The method returns an ASTNode object which points to the provided block, or null if node creation fails."]]],[]]