Represents a parameter of a function definition in R.

interface RParameter<Info> {
    defaultValue: undefined | RNode<Info>;
    info: Info & Source;
    lexeme: string;
    location: SourceRange;
    name: RSymbol<Info, string>;
    special: boolean;
    type: Parameter;
}

Type Parameters

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of RParameter

Properties

defaultValue: undefined | 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

name: RSymbol<Info, string>
special: boolean

is it the special ... parameter?

type: Parameter