Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a basic block of TealComponents in a graph ending with a branch condition.

Hierarchy

Index

Constructors

constructor

Properties

Private Optional _falseBlock

_falseBlock: TealBlock

Private Optional _trueBlock

_trueBlock: TealBlock

Readonly id

id: number

incoming

incoming: TealBlock[]

ops

ops: TealOp[]

Accessors

falseBlock

  • get falseBlock(): undefined | TealBlock
  • set falseBlock(value: undefined | TealBlock): void

trueBlock

  • get trueBlock(): undefined | TealBlock
  • set trueBlock(value: undefined | TealBlock): void

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