@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
22 lines • 824 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeNext = normalizeNext;
const log_1 = require("../../../../../../../util/log");
const parser_1 = require("../../../json/parser");
const normalize_meta_1 = require("../../normalize-meta");
const type_1 = require("../../../../model/type");
function normalizeNext(data, obj) {
(0, log_1.expensiveTrace)(parser_1.parseLog, () => `[next] ${JSON.stringify(obj)}`);
const { location, content } = (0, normalize_meta_1.retrieveMetaStructure)(obj);
return {
type: type_1.RType.Next,
location,
lexeme: content,
info: {
fullRange: data.currentRange,
additionalTokens: [],
fullLexeme: data.currentLexeme
}
};
}
//# sourceMappingURL=normalize-next.js.map