Class RootNode

The root node that represents the head of the AST. It only stores children.

Hierarchy (view full)

Constructors

Properties

children: BaseNode[]

The children of the node.

Ref: ChildrenHolder.children

name: string = "RootNode"

The name of the node.

Methods

  • Converts the node into a tree-like overview of all children.

    Parameters

    • indentWidth: number = 2

      The number of spaces to indent the output. Defaults to 2.

    Returns string

    The tree-like overview of all children.

  • Gets the children of the node tree.

    Parameters

    • indentWidth: number

      The number of spaces to indent the output.

    Returns string

    The children of the node tree.

Generated using TypeDoc