sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for an AST node. It is recommended that you use one of the createNode methods instead of creating a node directly.

      Parameters

      • type: string

        The type of the location. Must be in Blockly.ASTNode.types.

      • location: IASTNodeLocation

        The position in the AST.

      • Optionalopt_params: Params

        Optional dictionary of options.

      Returns Blockly.ASTNode

    Methods

    • Gets the value pointed to by this node. It is the callers responsibility to check the node type to figure out what type of object they get back from this.

      Returns IASTNodeLocation

      The current field, connection, workspace, or block the cursor is on.

    • Finds the source block of the location of this node.

      Returns Blockly.Block

      The source block of the location, or null if the node is of type workspace.

    • The type of the current location. One of Blockly.ASTNode.types

      Returns string

      The type of the location.

    • Find the element one level below and all the way to the left of the current location.

      Returns Blockly.ASTNode

      An AST node that wraps the next field, connection, workspace, or block. Or null if there is nothing below this node.

    • Whether the node points to a connection.

      Returns boolean

      [description]

    • Find the element to the right of the current element in the AST.

      Returns Blockly.ASTNode

      An AST node that wraps the next field, connection, block, or workspace. Or null if there is no node to the right.

    • Find the next element that is one position above and all the way to the left of the current location.

      Returns Blockly.ASTNode

      An AST node that wraps the next field, connection, workspace or block. Or null if we are at the workspace level.

    • Find the element to the left of the current element in the AST.

      Returns Blockly.ASTNode

      An AST node that wraps the previous field, connection, workspace or block. Or null if no node exists to the left. null.