UNPKG

@abaplint/core

Version:
20 lines 901 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Wait = void 0; const combi_1 = require("../combi"); const version_1 = require("../../../version"); const expressions_1 = require("../expressions"); class Wait { getMatcher() { const up = (0, combi_1.seq)("UP TO", expressions_1.Source, "SECONDS"); const channels = "MESSAGING CHANNELS"; const push = (0, combi_1.ver)(version_1.Version.v750, "PUSH CHANNELS", version_1.Version.OpenABAP); const tasks = "ASYNCHRONOUS TASKS"; const type = (0, combi_1.seq)("FOR", (0, combi_1.per)(channels, push, tasks)); const until = (0, combi_1.seq)((0, combi_1.opt)(type), "UNTIL", expressions_1.Cond, (0, combi_1.opt)(up)); const ret = (0, combi_1.seq)("WAIT", (0, combi_1.alt)(until, up)); return ret; } } exports.Wait = Wait; //# sourceMappingURL=wait.js.map