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