UNPKG

@abaplint/core

Version:
13 lines 674 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDSCast = void 0; const _1 = require("."); const combi_1 = require("../../abap/2_statements/combi"); class CDSCast extends combi_1.Expression { getRunnable() { const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.optPrio)((0, combi_1.seq)(".", _1.CDSName))); return (0, combi_1.seq)("CAST", "(", (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSCase, _1.CDSAggregate, _1.CDSArithmetics, CDSCast, _1.CDSString, name), "AS", _1.CDSType, (0, combi_1.optPrio)((0, combi_1.seq)("PRESERVING", "TYPE")), ")"); } } exports.CDSCast = CDSCast; //# sourceMappingURL=cds_cast.js.map