Skip to main content

interface Tree<T,TS,TB,C>

undocumented

Implemented by: LeafTree<T>, NonLeafTree<T,C>

Type parameters

NameConstraintsDescription
Tundocumented
TSTree<T, TS, TB, C>undocumented
TBBlock<T, TB, C>undocumented
Cundocumented

Properties

context

undocumented

Definition

readonly context: ListContext;

left

undocumented

Definition

readonly left: TB;

length

undocumented

Definition

readonly length: number;

middle

undocumented

Definition

readonly middle: NonLeaf<T, TB> | null;

undocumented

Definition

readonly right: TB;

Methods

appendMiddle

undocumented

Definition

appendMiddle(child: TB): NonLeaf<T, TB>;

Parameters

NameTypeDescription
childTB

copy

undocumented

Definition

copy(left?: TB, right?: TB, middle?: NonLeaf<T, TB> | null): TS;

Parameters

NameTypeDescription
leftTB
rightTB
middleNonLeaf<T, TB> | null

getChildLength

undocumented

Definition

getChildLength(child: C): number;

Parameters

NameTypeDescription
childC

prependMiddle

undocumented

Definition

prependMiddle(child: TB): NonLeaf<T, TB>;

Parameters

NameTypeDescription
childTB