Class Empty

An empty node

Hierarchy

Implements

  • Term

Constructors

Properties

classOrder: number

The class order for this node

termType: "Empty" = EmptyTermType

The type of node

value: string

The node's value

fromValue: (<T>(value: ValueType) => T)

Type declaration

    • <T>(value: ValueType): T
    • Type Parameters

      • T extends FromValueReturns<any>

      Parameters

      • value: ValueType

      Returns T

toJS: ((term: any) => string | boolean | object | Number | Date | (string | boolean | object | Number | Date)[])

Type declaration

    • (term: any): string | boolean | object | Number | Date | (string | boolean | object | Number | Date)[]
    • Parameters

      • term: any

      Returns string | boolean | object | Number | Date | (string | boolean | object | Number | Date)[]

Methods

  • Compares whether the two nodes are equal

    Parameters

    • other: Term

      The other node

    Returns boolean

  • Creates the substituted node for this one, according to the specified bindings

    Type Parameters

    Parameters

    • bindings: Bindings

      Bindings of identifiers to nodes

    Returns T

Generated using TypeDoc