UNPKG

@abaplint/core

Version:
14 lines 750 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() { // CDSArithmetics before CDSFunction/CDSAggregate: handles function()*n, cast()*n, sum()*n patterns const first = (0, combi_1.altPrio)(_1.CDSArithmetics, _1.CDSFunction, _1.CDSArithParen, _1.CDSCase, _1.CDSAggregate, CDSCast, _1.CDSString, _1.CDSPrefixedName, _1.CDSInteger); return (0, combi_1.seq)("CAST", "(", first, "AS", _1.CDSType, (0, combi_1.optPrio)((0, combi_1.seq)("PRESERVING", "TYPE")), ")"); } } exports.CDSCast = CDSCast; //# sourceMappingURL=cds_cast.js.map