Interface NodeData

JSON data representation of an AST node.

interface NodeData {
    nodes?: NodeData[];
    tokens?: { type: string; [prop: string]: HaysonVal | string[] }[];
    type: string;
}

Properties

Properties

nodes?: NodeData[]

Any child nodes the node might have.

tokens?: { type: string; [prop: string]: HaysonVal | string[] }[]

Any tokens the node might have.

type: string

The type of node. Each node has a unique identifier.