@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
18 lines • 589 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeDelimiter = normalizeDelimiter;
const normalize_meta_1 = require("../../normalize-meta");
const type_1 = require("../../../../model/type");
/**
* Normalizes a delimiter node like `,`.
*/
function normalizeDelimiter(elem) {
const { location, content } = (0, normalize_meta_1.retrieveMetaStructure)(elem.content);
return {
type: type_1.RType.Delimiter,
location,
lexeme: content,
subtype: elem.name
};
}
//# sourceMappingURL=normalize-delimiter.js.map