UNPKG

@abaplint/core

Version:
14 lines 804 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDSDefineAbstract = void 0; const _1 = require("."); const combi_1 = require("../../abap/2_statements/combi"); const cds_name_1 = require("./cds_name"); class CDSDefineAbstract extends combi_1.Expression { getRunnable() { const field = (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.opt)((0, combi_1.str)("KEY")), cds_name_1.CDSName, ":", _1.CDSType, ";"); return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.str)("DEFINE ABSTRACT ENTITY"), cds_name_1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)(field), (0, combi_1.str)("}"), (0, combi_1.opt)(";")); } } exports.CDSDefineAbstract = CDSDefineAbstract; //# sourceMappingURL=cds_define_abstract.js.map