Calls of functions like a() and foo(42, "hello").

RUnnamedFunctionCall

interface RNamedFunctionCall<Info = NoInfo> {
    arguments: readonly RFunctionArgument<Info>[];
    functionName: RSymbol<Info>;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    named: true;
    type: FunctionCall;
    [key: string]: unknown;
}

Type Parameters

Hierarchy (View Summary)

Indexable

  • [key: string]: unknown

Hierarchy-Diagram

UML class diagram of RNamedFunctionCall

Properties

arguments: readonly RFunctionArgument<Info>[]

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

functionName: RSymbol<Info>
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: true