UNPKG

@abaplint/core

Version:
16 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDSElement = void 0; const _1 = require("."); const combi_1 = require("../../abap/2_statements/combi"); const cds_as_1 = require("./cds_as"); const cds_cast_1 = require("./cds_cast"); class CDSElement extends combi_1.Expression { getRunnable() { const redirected = (0, combi_1.seq)(": REDIRECTED TO", (0, combi_1.optPrio)((0, combi_1.altPrio)("PARENT", "COMPOSITION CHILD")), _1.CDSName); const colonThing = (0, combi_1.seq)(":", (0, combi_1.alt)(_1.CDSName, _1.CDSType, "LOCALIZED")); return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)((0, combi_1.altPrio)("KEY", "VIRTUAL")), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSArithmetics, _1.CDSFunction, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)("(", _1.CDSCase, ")"), (0, combi_1.seq)(_1.CDSPrefixedName, (0, combi_1.optPrio)(cds_as_1.CDSAs), (0, combi_1.optPrio)((0, combi_1.altPrio)(redirected, colonThing))), _1.CDSInteger), (0, combi_1.optPrio)(cds_as_1.CDSAs)); } } exports.CDSElement = CDSElement; //# sourceMappingURL=cds_element.js.map