UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

10 lines (9 loc) 760 B
import type { DataflowProcessors } from '../processor'; import type { ParentInformation } from '../../r-bridge/lang-4.x/ast/model/processing/decorate'; import type { FlowrAnalyzerContext } from '../../project/context/flowr-analyzer-context'; import type { RType } from '../../r-bridge/lang-4.x/ast/model/type'; /** * This takes the out parameter `countMap` and fills it with the count of how many times each RType was processed. * The accompanying `reset` function can be used to reset the map to an empty state. */ export declare function instrumentDataflowCount(countMap: Map<RType, number>, reset: (map: Map<RType, number>) => void): (extractor: DataflowProcessors<ParentInformation>, ctx: FlowrAnalyzerContext) => DataflowProcessors<ParentInformation>;