Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChainNode<TValid, TNoteContent>

Type parameters

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

  • new ChainNode<TValid, TNoteContent>(__namedParameters: { combos: ComboNode<boolean, TNoteContent>[]; end: number; start: number }): ChainNode<TValid, TNoteContent>

Properties

combos: ComboNode<boolean, TNoteContent>[]
end: number
start: number
type: CHAIN
valid: boolean

Accessors

  • get parent(): undefined
  • set parent(value: undefined): void

Methods

  • Returns the canonical version string version of the node.

    The main purpose is to provide some definitive string versions of nodes so that we can check the equality of two shortcuts. This should ideally be done at the ChainNode level since e.g. key parses to Chain(Combo(Key(key))) but all it's node's string versions equal each other (i.e. Chain(Combo(Key(key))) === Key(key)).

    The string returned should also parse back to exactly the same nodes (again, at the @ChainNode level).

    See Token.stringify for how this works at the token level.

    Parameters

    Returns string

Generated using TypeDoc