UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

21 lines 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mapper = void 0; exports.map = map; const search_enrichers_1 = require("./search-enrichers"); var Mapper; (function (Mapper) { Mapper["Enrichment"] = "enrichment"; })(Mapper || (exports.Mapper = Mapper = {})); const Mappers = { [Mapper.Enrichment]: { mapper: (e, _data, enrichment) => { const data = (0, search_enrichers_1.enrichmentContent)(e, enrichment); return data !== undefined ? search_enrichers_1.Enrichments[enrichment].mapper(data) : []; } } }; function map(e, data, mapper, args) { return Mappers[mapper].mapper(e, data, args); } //# sourceMappingURL=search-mappers.js.map