@abaplint/core
Version:
abaplint - Core API
14 lines • 656 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CondBody = void 0;
const combi_1 = require("../combi");
const _1 = require(".");
class CondBody extends combi_1.Expression {
getRunnable() {
const when = (0, combi_1.seq)("WHEN", (0, combi_1.altPrio)(_1.Cond, _1.Source), "THEN", (0, combi_1.altPrio)(_1.Throw, _1.Source));
const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.altPrio)(_1.Throw, _1.Source));
return (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(elsee));
}
}
exports.CondBody = CondBody;
//# sourceMappingURL=cond_body.js.map