A number like 3, -2.14, 1L, or 2i. Includes numeric, integer, and complex. See RNumberValue for more information.

interface RNumber<Info> {
    content: RNumberValue;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    type: Number;
}

Type Parameters

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of RNumber

Properties

content: RNumberValue
info: Info & Source

allows to attach additional information to the node

lexeme: string

the original string retrieved from R, can be used for further identification

location: SourceRange

The location may differ from what is stated in Source#fullRange as it represents the location identified by the R parser.

Source#fullRange

type: Number