UNPKG

@abaplint/core

Version:
16 lines 986 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDSAnnotationSimple = void 0; const _1 = require("."); const cds_prefixed_name_1 = require("./cds_prefixed_name"); const combi_1 = require("../../abap/2_statements/combi"); class CDSAnnotationSimple extends combi_1.Expression { getRunnable() { const value = (0, combi_1.alt)(_1.CDSString, "true", "false", "null", (0, combi_1.seq)("-", (0, combi_1.regex)(/^\d+$/)), (0, combi_1.regex)(/^\d+$/), (0, combi_1.seq)((0, combi_1.regex)(/^\d+$/), ".", (0, combi_1.regex)(/^\d+$/)), (0, combi_1.seq)("#", "(", _1.CDSString, ")"), // #(_Header.Field) — dotted path inside #(...) (0, combi_1.seq)("#", "(", cds_prefixed_name_1.CDSPrefixedName, ")"), (0, combi_1.seq)("#", "(", (0, combi_1.regex)(/^[\w_]+$/), ")"), (0, combi_1.regex)(/^#[\w_]+$/)); return value; } } exports.CDSAnnotationSimple = CDSAnnotationSimple; //# sourceMappingURL=cds_annotation_simple.js.map