UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

22 lines (21 loc) 1.23 kB
import type { BaseQueryFormat, BaseQueryResult } from '../../base-query-format'; import type { DataflowGraph } from '../../../dataflow/graph/graph'; import { executeDataflowQuery } from './dataflow-query-executor'; import Joi from 'joi'; import type { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id'; /** * Simple re-returns the dataflow graph of the analysis. */ export interface DataflowQuery extends BaseQueryFormat { readonly type: 'dataflow'; } export interface DataflowQueryResult extends BaseQueryResult { /** Please be aware that this is the graph in its JSON representation, use {@link DataflowGraph#fromJson} if the result is serialized */ readonly graph: DataflowGraph; } export declare const DataflowQueryDefinition: { readonly executor: typeof executeDataflowQuery; readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, _analyzer: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true; readonly schema: Joi.ObjectSchema<any>; readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[]; };