for(<variable> in <vector>) <body>
interface RForLoop<Info = NoInfo> {
    body: RExpressionList<Info>;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    type: ForLoop;
    variable: RSymbol<Info>;
    vector: RNode<Info>;
    [key: string]: unknown;
}

Type Parameters

Hierarchy (View Summary)

Indexable

  • [key: string]: unknown

Hierarchy-Diagram

UML class diagram of RForLoop

Properties

body used in for-loop:

for(... in ...) <body>

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: ForLoop
variable: RSymbol<Info>

variable used in for-loop:

for(<variable> in ...) ...

vector: RNode<Info>

vector used in for-loop:

for(... in <vector>) ...