Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TealSimpleBlock

Represents a basic block of TealComponents in a graph that does not contain a branch condition.

Hierarchy

Index

Constructors

constructor

Properties

Readonly id

id: number

incoming

incoming: TealBlock[]

Optional nextBlock

nextBlock: TealBlock

ops

ops: TealOp[]

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

equals

  • equals(other: any): boolean

getOutgoing

isTerminal

  • isTerminal(): boolean

replaceOutgoing

toString

  • toString(): string

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