UNPKG

@abaplint/core

Version:
15 lines 878 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValueBody = void 0; const combi_1 = require("../combi"); const _1 = require("."); const version_1 = require("../../../version"); class ValueBody extends combi_1.Expression { getRunnable() { const strucOrTab = (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.optPrio)(_1.ValueBase), (0, combi_1.star)(_1.For), (0, combi_1.plusPrio)((0, combi_1.altPrio)(_1.FieldAssignment, _1.ValueBodyLine))); const tabdef = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.altPrio)("OPTIONAL", (0, combi_1.seq)("DEFAULT", _1.Source)), version_1.Version.OpenABAP); return (0, combi_1.optPrio)((0, combi_1.altPrio)(strucOrTab, (0, combi_1.seq)(_1.Source, (0, combi_1.optPrio)(tabdef)))); } } exports.ValueBody = ValueBody; //# sourceMappingURL=value_body.js.map