UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

22 lines 946 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.processValue = processValue; const graph_1 = require("../../graph/graph"); const vertex_1 = require("../../graph/vertex"); const identifier_1 = require("../../environments/identifier"); function processValue({ info: { id } }, data) { return { unknownReferences: [], in: [{ nodeId: id, name: undefined, controlDependencies: data.controlDependencies, type: identifier_1.ReferenceType.Constant }], out: [], environment: data.environment, graph: new graph_1.DataflowGraph(data.completeAst.idMap).addVertex({ tag: vertex_1.VertexType.Value, id: id, cds: data.controlDependencies }), exitPoints: [{ nodeId: id, type: 0 /* ExitPointType.Default */, controlDependencies: data.controlDependencies }], entryPoint: id }; } //# sourceMappingURL=process-value.js.map