Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TealBlock

Hierarchy

Index

Constructors

Protected constructor

Properties

Readonly id

id: number

incoming

incoming: TealBlock[]

ops

ops: TealOp[]

Static Private idCounter

idCounter: number = 0

Methods

addIncoming

  • Calculate the parent blocks for this block and its children.

    Parameters

    • Optional parent: TealBlock

      (optional): The parent block to this one, if it has one. Defaults to None.

    • Optional visited: TealBlock[]

      (optional): Used internally to remember blocks that have been visited. Set to None.

    Returns void

Abstract equals

  • equals(other: any): boolean

Abstract getOutgoing

isTerminal

  • isTerminal(): boolean

Abstract replaceOutgoing

validateSlots

validateTree

Static fromOp

Static iterate

Static normalizeBlocks

  • Minimize the number of blocks in the graph of blocks starting with start by combining sequential blocks. This operation does not alter the operations of the graph or the functionality of its underlying program, however it does mutate the input graph.

    Parameters

    Returns TealBlock

    The new starting point of the altered graph. May be the same or different than start.

Generated using TypeDoc