@abaplint/core
Version:
abaplint - Core API
20 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReadLine = void 0;
const combi_1 = require("../combi");
const expressions_1 = require("../expressions");
const version_1 = require("../../../version");
class ReadLine {
getMatcher() {
const val = (0, combi_1.seq)("LINE VALUE INTO", expressions_1.Target);
const fields = (0, combi_1.seq)(expressions_1.Target, (0, combi_1.opt)((0, combi_1.seq)("INTO", expressions_1.Target)));
const field = (0, combi_1.seq)("FIELD VALUE", (0, combi_1.plus)(fields));
const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
const page = (0, combi_1.seq)("OF PAGE", expressions_1.Source);
const current = (0, combi_1.str)("OF CURRENT PAGE");
const ret = (0, combi_1.seq)("READ", (0, combi_1.alt)("CURRENT LINE", (0, combi_1.seq)("LINE", expressions_1.Source)), (0, combi_1.opt)((0, combi_1.per)(val, index, field, page, current)));
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
}
}
exports.ReadLine = ReadLine;
//# sourceMappingURL=read_line.js.map