UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

13 lines (12 loc) 799 B
import type { DataflowGraph } from '../../dataflow/graph/graph'; import type { RShell } from '../../r-bridge/shell'; import type { RNodeWithParent } from '../../r-bridge/lang-4.x/ast/model/processing/decorate'; import type { KnownParser } from '../../r-bridge/parser'; export declare function printNormalizedAst(ast: RNodeWithParent, prefix?: string): string; export interface PrintNormalizedAstOptions { readonly showCode?: boolean; readonly prefix?: string; } export declare function printNormalizedAstForCode(parser: KnownParser, code: string, { showCode, prefix }?: PrintNormalizedAstOptions): Promise<string>; /** returns resolved expected df graph */ export declare function verifyExpectedSubgraph(shell: RShell, code: string, expectedSubgraph: DataflowGraph): Promise<DataflowGraph>;