Special comment to signal line mappings (e.g., in generated code) to the interpreter.

interface RLineDirective<Info = NoInfo> {
    file: string;
    info: Info & Source;
    lexeme: string;
    line: number;
    location: SourceRange;
    type: LineDirective;
    [key: string]: unknown;
}

Type Parameters

Hierarchy (View Summary)

Indexable

  • [key: string]: unknown

Hierarchy-Diagram

UML class diagram of RLineDirective

Properties

file: string
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

line: number
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