@abaplint/core
Version:
abaplint - Core API
14 lines • 675 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CDSAggregate = void 0;
const _1 = require(".");
const combi_1 = require("../../abap/2_statements/combi");
class CDSAggregate extends combi_1.Expression {
getRunnable() {
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)((0, combi_1.seq)(".", _1.CDSName)));
const value = (0, combi_1.alt)(name, "*", _1.CDSCast, _1.CDSCase, _1.CDSFunction);
return (0, combi_1.seq)((0, combi_1.alt)("MAX", "MIN", "SUM", "AVG", "COUNT"), "(", (0, combi_1.opt)("DISTINCT"), value, ")");
}
}
exports.CDSAggregate = CDSAggregate;
//# sourceMappingURL=cds_aggregate.js.map