@abaplint/core
Version:
abaplint - Core API
13 lines • 894 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CDSDefineProjection = void 0;
const _1 = require(".");
const __1 = require("../..");
const combi_1 = require("../../abap/2_statements/combi");
class CDSDefineProjection extends combi_1.Expression {
getRunnable() {
return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)(_1.CDSProviderContract), "AS PROJECTION ON", _1.CDSName, (0, combi_1.opt)(_1.CDSAs), (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(_1.CDSWhere), (0, combi_1.opt)(";"));
}
}
exports.CDSDefineProjection = CDSDefineProjection;
//# sourceMappingURL=cds_define_projection.js.map