@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
19 lines (18 loc) • 507 B
TypeScript
import type { Base, Location, NoInfo, RNode } from '../model';
import type { RType } from '../type';
import type { RParameter } from './r-parameter';
/**
* ```r
* function(<parameters>) <body>
* ```
* or:
* ```r
* \(<parameters>) <body>
* ```
*/
export interface RFunctionDefinition<Info = NoInfo> extends Base<Info>, Location {
readonly type: RType.FunctionDefinition;
/** the R formals, to our knowledge, they must be unique */
parameters: RParameter<Info>[];
body: RNode<Info>;
}