Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeyNode<TValid, TNoteContent>

Type parameters

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

end: number
note: undefined | { content: TNoteContent; left: Token<boolean, NOTE_DELIM_RIGHT | NOTE_DELIM_LEFT, string, TOKEN_TYPE[]>; right: Token<boolean, NOTE_DELIM_RIGHT | NOTE_DELIM_LEFT, string, TOKEN_TYPE[]> }
start: number
type: KEY
valid: boolean
value: Token<boolean, KEY, string, TOKEN_TYPE[]>

Accessors

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