RSingleNode: {
    is<Info = object>(
        this: void,
        node: undefined | RNode<Info>,
    ): node is RSingleNode<Info>;
    name: "RSingleNode";
    singleNodeTypes: ReadonlySet<RType>;
}

Represents a leaf node in the normalized AST, i.e. a node that does not have any children. This includes comment, symbol, constant, break, next and line directive nodes.

Type declaration

  • is:function
  • Readonlyname: "RSingleNode"
  • ReadonlysingleNodeTypes: ReadonlySet<RType>

    A set of all types of single nodes in the normalized AST, i.e. comment, symbol, constant, break, next and line directive nodes.