@abaplint/transpiler
Version:
28 lines • 811 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UniqueIdentifier = void 0;
class UniqueIdentifier {
static reset() {
this.counter = 0;
}
static get() {
// as part of the validation, it is ensured that no identifiers exists
// in the input source with ^unique\d+$
this.counter++;
return "unique" + this.counter;
}
static resetIndexBackup() {
this.indexBackup = 0;
}
static getIndexBackup() {
this.indexBackup++;
return "indexBackup" + this.indexBackup;
}
static getIndexBackup1() {
return "indexBackup1";
}
}
exports.UniqueIdentifier = UniqueIdentifier;
UniqueIdentifier.counter = 0;
UniqueIdentifier.indexBackup = 0;
//# sourceMappingURL=unique_identifier.js.map