@abaplint/runtime
Version:
Transpiler - Runtime
25 lines • 563 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MemoryConsole = void 0;
class MemoryConsole {
constructor() {
this.data = "";
}
clear() {
this.data = "";
}
add(data) {
this.data = this.data + data;
}
get() {
return this.data;
}
isEmpty() {
return this.data === "";
}
getTrimmed() {
return this.data.split("\n").map(a => a.trimEnd()).join("\n");
}
}
exports.MemoryConsole = MemoryConsole;
//# sourceMappingURL=memory_console.js.map