@abaplint/core 2.93.87 → 2.93.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -671,6 +671,10 @@ declare class CDSGroupBy extends Expression {
671
671
  getRunnable(): IStatementRunnable;
672
672
  }
673
673
 
674
+ declare class CDSInteger extends Expression {
675
+ getRunnable(): IStatementRunnable;
676
+ }
677
+
674
678
  declare class CDSJoin extends Expression {
675
679
  getRunnable(): IStatementRunnable;
676
680
  }
@@ -2096,6 +2100,7 @@ declare namespace ExpressionsCDS {
2096
2100
  CDSElement,
2097
2101
  CDSFunction,
2098
2102
  CDSGroupBy,
2103
+ CDSInteger,
2099
2104
  CDSJoin,
2100
2105
  CDSName,
2101
2106
  CDSParametersSelect,
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CDSArithmetics = void 0;
4
4
  const _1 = require(".");
5
5
  const combi_1 = require("../../abap/2_statements/combi");
6
+ const cds_integer_1 = require("./cds_integer");
6
7
  class CDSArithmetics extends combi_1.Expression {
7
8
  getRunnable() {
8
9
  const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)((0, combi_1.seq)(".", _1.CDSName)));
9
- const val = (0, combi_1.alt)((0, combi_1.regex)(/^\d+$/), name, _1.CDSFunction, _1.CDSCase, _1.CDSCast, _1.CDSString);
10
+ const val = (0, combi_1.alt)(cds_integer_1.CDSInteger, name, _1.CDSFunction, _1.CDSCase, _1.CDSCast, _1.CDSString);
10
11
  const operator = (0, combi_1.altPrio)("+", "-", "*", "/");
11
12
  return (0, combi_1.seq)(val, operator, val);
12
13
  }
@@ -3,15 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CDSCondition = void 0;
4
4
  const _1 = require(".");
5
5
  const combi_1 = require("../../abap/2_statements/combi");
6
+ const cds_integer_1 = require("./cds_integer");
6
7
  class CDSCondition extends combi_1.Expression {
7
8
  getRunnable() {
8
9
  const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)((0, combi_1.seq)(".", (0, combi_1.alt)(_1.CDSName, _1.CDSString))));
9
- const eq = (0, combi_1.seq)(name, (0, combi_1.alt)("=", (0, combi_1.seq)("!", "="), (0, combi_1.seq)("<", ">"), "<", ">", (0, combi_1.seq)(">", "="), (0, combi_1.seq)("<", "="), "LIKE", "NOT LIKE"), (0, combi_1.alt)(name, _1.CDSFunction, _1.CDSString));
10
- const isInitial = (0, combi_1.seq)(name, "IS INITIAL");
11
- const isNotInitial = (0, combi_1.seq)(name, "IS NOT INITIAL");
12
- const isNull = (0, combi_1.seq)(name, "IS NULL");
13
- const isNotNull = (0, combi_1.seq)(name, "IS NOT NULL");
14
- const condition = (0, combi_1.alt)(eq, isNull, isNotNull, isInitial, isNotInitial);
10
+ const left = (0, combi_1.alt)(name, _1.CDSFunction);
11
+ const compare = (0, combi_1.seq)(left, (0, combi_1.alt)("=", (0, combi_1.seq)("!", "="), (0, combi_1.seq)("<", ">"), "<", ">", (0, combi_1.seq)(">", "="), (0, combi_1.seq)("<", "="), "LIKE", "NOT LIKE"), (0, combi_1.alt)(left, cds_integer_1.CDSInteger, _1.CDSFunction, _1.CDSString));
12
+ const is = (0, combi_1.seq)(left, "IS", (0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)("INITIAL", "NULL"));
13
+ const condition = (0, combi_1.alt)(compare, is);
15
14
  const paren = (0, combi_1.seq)("(", CDSCondition, ")");
16
15
  return (0, combi_1.seq)((0, combi_1.alt)(condition, paren), (0, combi_1.star)((0, combi_1.seq)((0, combi_1.alt)("AND", "OR"), (0, combi_1.alt)(condition, paren))));
17
16
  }
@@ -7,7 +7,7 @@ const cds_as_1 = require("./cds_as");
7
7
  const cds_cast_1 = require("./cds_cast");
8
8
  class CDSElement extends combi_1.Expression {
9
9
  getRunnable() {
10
- return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(cds_cast_1.CDSCast, _1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters)))), (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
10
+ return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters)))), (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
11
11
  }
12
12
  }
13
13
  exports.CDSElement = CDSElement;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CDSInteger = void 0;
4
+ const combi_1 = require("../../abap/2_statements/combi");
5
+ class CDSInteger extends combi_1.Expression {
6
+ getRunnable() {
7
+ return (0, combi_1.regex)(/^\d+$/);
8
+ }
9
+ }
10
+ exports.CDSInteger = CDSInteger;
11
+ //# sourceMappingURL=cds_integer.js.map
@@ -35,6 +35,7 @@ __exportStar(require("./cds_define_view"), exports);
35
35
  __exportStar(require("./cds_element"), exports);
36
36
  __exportStar(require("./cds_function"), exports);
37
37
  __exportStar(require("./cds_group_by"), exports);
38
+ __exportStar(require("./cds_integer"), exports);
38
39
  __exportStar(require("./cds_join"), exports);
39
40
  __exportStar(require("./cds_name"), exports);
40
41
  __exportStar(require("./cds_parameters_select"), exports);
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.93.87";
66
+ return "2.93.89";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.93.87",
3
+ "version": "2.93.89",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -51,7 +51,7 @@
51
51
  "@types/mocha": "^10.0.0",
52
52
  "@types/node": "^18.11.9",
53
53
  "chai": "^4.3.7",
54
- "eslint": "^8.27.0",
54
+ "eslint": "^8.28.0",
55
55
  "mocha": "^10.1.0",
56
56
  "c8": "^7.12.0",
57
57
  "source-map-support": "^0.5.21",