Interface Node

The interface for a Node.

Hierarchy

  • Node

Implemented by

Properties

nodes: readonly Node[]

A list of child nodes for this node.

tokens: readonly Token[]

A list of tokens for this node.

type: NodeType

The type of node.

Methods

  • Accept a visitor for this.

    Please note, each new subtype of Node must have a corresponding enumeration and visitor method.

    Parameters

    • visitor: Visitor

      The visitor for this node.

    Returns void

  • Accept the visitor on all child nodes.

    Parameters

    • visitor: Visitor

      The visitor for the child nodes.

    Returns void

  • Evaluate the node against the evaluation context and return the result.

    Parameters

    Returns boolean

    the resultant evaluation.

Generated using TypeDoc