Direct calls of functions like (function(x) { x })(3).

RNamedFunctionCall

interface RUnnamedFunctionCall<Info = NoInfo> {
    arguments: readonly RFunctionArgument<Info>[];
    calledFunction: RNode<Info>;
    infixSpecial?: boolean;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    named: undefined | false;
    type: FunctionCall;
    [key: string]: unknown;
}

Type Parameters

Hierarchy (View Summary)

Indexable

  • [key: string]: unknown

Hierarchy-Diagram

UML class diagram of RUnnamedFunctionCall

Properties

arguments: readonly RFunctionArgument<Info>[]

arguments can be undefined, for example when calling as a(1, ,3)

calledFunction: RNode<Info>
infixSpecial?: boolean

marks function calls like 3 %xx% 4 which have been written in special infix notation; deprecated in v2

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

named: undefined | false