Represents identifiers (variables).

interface RSymbol<Info, T> {
    content: T;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    namespace: undefined | string;
    type: Symbol;
}

Type Parameters

  • Info = NoInfo
  • T extends string = string

Hierarchy (view full)

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

namespace: undefined | string

The namespace attached to the given node (e.g., a namespaced symbol in x::y).

type: Symbol