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

Helper object to provide helper functions for RConstants.

Type declaration

  • ReadonlyconstantTypes: ReadonlySet<RType>

    A set of all types of constants in the normalized AST, i.e. number, string and logical constants.

  • is:function
  • Readonlyname: "RConstant"

RNode - for more general helper functions for all nodes