@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
17 lines (16 loc) • 753 B
TypeScript
import type { RNode } from '../../r-bridge/lang-4.x/ast/model/model';
import type { ParentInformation, NormalizedAst } from '../../r-bridge/lang-4.x/ast/model/processing/decorate';
/**
* The structure of the predicate that should be used to determine
* if a given normalized node should be included in the reconstructed code,
* independent of if it is selected by the slice or not.
*
* @see reconstructToCode
* @see doNotAutoSelect
* @see autoSelectLibrary
*/
export type AutoSelectPredicate = (node: RNode<ParentInformation>, fullAst: NormalizedAst) => boolean;
/**
* A variant of the {@link AutoSelectPredicate} which does not select any additional statements (~> false)
*/
export declare function doNotAutoSelect(_node: RNode): boolean;