Operators like +, ==, &&, etc.

interface RBinaryOp<Info = NoInfo> {
    info: Info & Source;
    lexeme: string;
    lhs: RNode<Info>;
    location: SourceRange;
    operator: string;
    rhs: RNode<Info>;
    type: BinaryOp;
    [key: string]: unknown;
}

Type Parameters

Hierarchy (View Summary)

Indexable

  • [key: string]: unknown

Hierarchy-Diagram

UML class diagram of RBinaryOp

Properties

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

lhs: RNode<Info>
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

operator: string
rhs: RNode<Info>
type: BinaryOp