UNPKG

@abaplint/core

Version:
14 lines 930 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDSDefineTableFunction = void 0; const _1 = require("."); const combi_1 = require("../../abap/2_statements/combi"); const cds_name_1 = require("./cds_name"); class CDSDefineTableFunction extends combi_1.Expression { getRunnable() { const methodName = (0, combi_1.seq)(cds_name_1.CDSName, "=", ">", cds_name_1.CDSName); return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.str)("DEFINE TABLE FUNCTION"), cds_name_1.CDSName, (0, combi_1.optPrio)(_1.CDSWithParameters), (0, combi_1.str)("RETURNS {"), (0, combi_1.plus)((0, combi_1.seq)((0, combi_1.optPrio)("KEY"), cds_name_1.CDSName, ":", _1.CDSType, ";")), (0, combi_1.str)("} IMPLEMENTED BY METHOD"), methodName, (0, combi_1.opt)(";")); } } exports.CDSDefineTableFunction = CDSDefineTableFunction; //# sourceMappingURL=cds_define_table_function.js.map