Represents identifiers (variables) such as x in x <- 42 or a::foo in a::foo(). See Identifier for more information about how identifiers are represented.

interface RSymbol<Info = NoInfo, T extends Identifier = Identifier> {
    content: T;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    type: Symbol;
    [key: string]: unknown;
}

Type Parameters

Hierarchy (View Summary)

Indexable

  • [key: string]: unknown

Hierarchy-Diagram

UML class diagram of RSymbol

Properties

content: T
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: Symbol