@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
15 lines (14 loc) • 443 B
TypeScript
import type { Base, Location, NoInfo, RNode } from '../model';
import type { RType } from '../type';
import type { RExpressionList } from './r-expression-list';
/**
* ```r
* if(<condition>) <then> [else <otherwise>]
* ```
*/
export interface RIfThenElse<Info = NoInfo> extends Base<Info>, Location {
readonly type: RType.IfThenElse;
condition: RNode<Info>;
then: RExpressionList<Info>;
otherwise?: RExpressionList<Info>;
}