rhombic
Version:
SQL parsing, lineage extraction and manipulation
43 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UppercaseCharStream = void 0;
class UppercaseCharStream {
constructor(wrapped) {
this.wrapped = wrapped;
}
getText(interval) {
return this.wrapped.getText(interval);
}
consume() {
this.wrapped.consume();
}
LA(i) {
const c = this.wrapped.LA(i);
if (c <= 0) {
return c;
}
return String.fromCodePoint(c)
.toUpperCase()
.codePointAt(0);
}
mark() {
return this.wrapped.mark();
}
release(marker) {
this.wrapped.release(marker);
}
get index() {
return this.wrapped.index;
}
seek(index) {
this.wrapped.seek(index);
}
get size() {
return this.wrapped.size;
}
get sourceName() {
return this.wrapped.sourceName;
}
}
exports.UppercaseCharStream = UppercaseCharStream;
//# sourceMappingURL=UppercaseCharStream.js.map