@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
29 lines • 796 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FlowrSearchElements = void 0;
/** Intentionally, we abstract away from an array to avoid the use of conventional typescript operations */
class FlowrSearchElements {
elements = [];
constructor(elements) {
if (elements) {
this.elements = elements;
}
}
add(element) {
this.elements.push(element);
return this;
}
addAll(elements) {
this.elements.push(...elements);
return this;
}
getElements() {
return this.elements;
}
mutate(mutator) {
this.elements = mutator(this.elements);
return this;
}
}
exports.FlowrSearchElements = FlowrSearchElements;
//# sourceMappingURL=flowr-search.js.map