UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

21 lines 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.executeNormalizedAstQuery = executeNormalizedAstQuery; const log_1 = require("../../../util/log"); /** * Executes the normalized-AST query. */ async function executeNormalizedAstQuery({ analyzer }, queries) { if (queries.length !== 1) { log_1.log.warn('Normalized-Ast query expects only up to one query, but got', queries.length); } const startTime = Date.now(); const normalized = await analyzer.normalize(); return { '.meta': { timing: Date.now() - startTime }, normalized }; } //# sourceMappingURL=normalized-ast-query-executor.js.map