UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

11 lines (10 loc) 657 B
import type { RNode } from './model'; import type { NodeId } from './processing/node-id'; import type { ParentInformation } from './processing/decorate'; /** * Collects all node ids within a tree given by a respective root node * * @param nodes - The root id nodes to start collecting from * @param stop - A function that determines whether to stop collecting at a given node, does not stop by default */ export declare function collectAllIds<OtherInfo>(nodes: RNode<OtherInfo & ParentInformation> | (RNode<OtherInfo & ParentInformation> | null | undefined)[] | undefined, stop?: (node: RNode<OtherInfo & ParentInformation>) => boolean): Set<NodeId>;