function(<parameters>) <body>

or:

\(<parameters>) <body>
interface RFunctionDefinition<Info = NoInfo> {
    body: RNode<Info>;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    parameters: RParameter<Info>[];
    type: FunctionDefinition;
    [key: string]: unknown;
}

Type Parameters

Hierarchy (View Summary)

Indexable

  • [key: string]: unknown

Hierarchy-Diagram

UML class diagram of RFunctionDefinition

Properties

body: RNode<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

parameters: RParameter<Info>[]

the R formals, to our knowledge, they must be unique