@abaplint/cli 2.113.98 → 2.113.99

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.
Files changed (2) hide show
  1. package/build/cli.js +30 -7
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -13004,7 +13004,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
13004
13004
  // todo, cloud, split?
13005
13005
  class Export {
13006
13006
  getMatcher() {
13007
- const from = (0, combi_1.seq)("FROM", expressions_1.Source);
13007
+ const from = (0, combi_1.seq)((0, combi_1.altPrio)("FROM", "="), expressions_1.Source);
13008
13008
  const client = (0, combi_1.seq)("CLIENT", expressions_1.Source);
13009
13009
  const id = (0, combi_1.seq)("ID", expressions_1.Source);
13010
13010
  const using = (0, combi_1.seq)("USING", expressions_1.Source);
@@ -13016,7 +13016,7 @@ class Export {
13016
13016
  const database = (0, combi_1.seq)("DATABASE", cluster, (0, combi_1.per)(from, client, id, using));
13017
13017
  const target = (0, combi_1.alt)(buffer, memory, database, table, shared);
13018
13018
  const left = (0, combi_1.alt)(expressions_1.FieldSub, expressions_1.FieldSymbol);
13019
- const source = (0, combi_1.alt)((0, combi_1.plus)((0, combi_1.altPrio)(expressions_1.ParameterS, (0, combi_1.seq)(left, from), left)), expressions_1.Dynamic, expressions_1.Constant);
13019
+ const source = (0, combi_1.alt)((0, combi_1.plus)((0, combi_1.altPrio)((0, combi_1.seq)(left, from), left)), expressions_1.Dynamic, expressions_1.Constant);
13020
13020
  const compression = (0, combi_1.seq)("COMPRESSION", (0, combi_1.alt)("ON", "OFF"));
13021
13021
  const hint = (0, combi_1.seq)("CODE PAGE HINT", expressions_1.Source);
13022
13022
  return (0, combi_1.seq)("EXPORT", source, "TO", target, (0, combi_1.opt)(compression), (0, combi_1.opt)(hint));
@@ -35933,6 +35933,7 @@ exports.DECLARATION_STUFF = [
35933
35933
  Statements.Parameter,
35934
35934
  Statements.SelectionScreen,
35935
35935
  Statements.ConstantBegin,
35936
+ Statements.Define,
35936
35937
  ];
35937
35938
  //# sourceMappingURL=selection_events.js.map
35938
35939
 
@@ -41159,7 +41160,7 @@ const cds_as_1 = __webpack_require__(/*! ./cds_as */ "./node_modules/@abaplint/c
41159
41160
  const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_cast.js");
41160
41161
  class CDSElement extends combi_1.Expression {
41161
41162
  getRunnable() {
41162
- 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.CDSArithmetics, _1.CDSFunction, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)("(", _1.CDSCase, ")"), (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), _1.CDSPrefixedName, (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
41163
+ 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.CDSArithmetics, _1.CDSFunction, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)("(", _1.CDSCase, ")"), (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), _1.CDSPrefixedName, _1.CDSInteger), (0, combi_1.opt)(cds_as_1.CDSAs));
41163
41164
  }
41164
41165
  }
41165
41166
  exports.CDSElement = CDSElement;
@@ -41272,7 +41273,7 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
41272
41273
  class CDSFunctionInput extends combi_1.Expression {
41273
41274
  getRunnable() {
41274
41275
  const qualified = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters))));
41275
- const input = (0, combi_1.altPrio)(_1.CDSCast, _1.CDSFunction, _1.CDSArithmetics, _1.CDSCase, _1.CDSString, qualified, (0, combi_1.regex)(/^\d+$/));
41276
+ const input = (0, combi_1.altPrio)(_1.CDSCast, _1.CDSFunction, _1.CDSArithmetics, _1.CDSCase, _1.CDSString, qualified, _1.CDSInteger);
41276
41277
  return input;
41277
41278
  }
41278
41279
  }
@@ -41339,7 +41340,7 @@ exports.CDSInteger = void 0;
41339
41340
  const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
41340
41341
  class CDSInteger extends combi_1.Expression {
41341
41342
  getRunnable() {
41342
- return (0, combi_1.regex)(/^\d+$/);
41343
+ return (0, combi_1.seq)((0, combi_1.opt)("-"), (0, combi_1.regex)(/^\d+$/));
41343
41344
  }
41344
41345
  }
41345
41346
  exports.CDSInteger = CDSInteger;
@@ -41362,7 +41363,9 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
41362
41363
  const cds_condition_1 = __webpack_require__(/*! ./cds_condition */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_condition.js");
41363
41364
  class CDSJoin extends combi_1.Expression {
41364
41365
  getRunnable() {
41365
- return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER")), "JOIN", _1.CDSSource, "ON", cds_condition_1.CDSCondition);
41366
+ const cond = (0, combi_1.seq)(_1.CDSSource, "ON", cds_condition_1.CDSCondition);
41367
+ const foo = (0, combi_1.altPrio)((0, combi_1.seq)("(", cond, ")"), cond);
41368
+ return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER")), "JOIN", foo);
41366
41369
  }
41367
41370
  }
41368
41371
  exports.CDSJoin = CDSJoin;
@@ -53822,7 +53825,7 @@ class Registry {
53822
53825
  }
53823
53826
  static abaplintVersion() {
53824
53827
  // magic, see build script "version.sh"
53825
- return "2.113.98";
53828
+ return "2.113.99";
53826
53829
  }
53827
53830
  getDDICReferences() {
53828
53831
  return this.ddicReferences;
@@ -77373,6 +77376,26 @@ class VirtualPosition extends position_1.Position {
77373
77376
  const casted = p;
77374
77377
  return super.equals(this) && this.vrow === casted.vrow && this.vcol === casted.vcol;
77375
77378
  }
77379
+ isAfter(p) {
77380
+ if (p instanceof VirtualPosition) {
77381
+ if (this.getRow() > p.getRow()) {
77382
+ return true;
77383
+ }
77384
+ if (this.getRow() === p.getRow() && this.getCol() > p.getCol()) {
77385
+ return true;
77386
+ }
77387
+ if (this.getRow() === p.getRow() && this.getCol() === p.getCol() && this.vrow > p.vrow) {
77388
+ return true;
77389
+ }
77390
+ if (this.getRow() === p.getRow() && this.getCol() === p.getCol() && this.vrow === p.vrow && this.vcol > p.vcol) {
77391
+ return true;
77392
+ }
77393
+ return false;
77394
+ }
77395
+ else {
77396
+ return super.isAfter(p);
77397
+ }
77398
+ }
77376
77399
  }
77377
77400
  exports.VirtualPosition = VirtualPosition;
77378
77401
  //# sourceMappingURL=virtual_position.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.98",
3
+ "version": "2.113.99",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,16 +38,16 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.98",
41
+ "@abaplint/core": "^2.113.99",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.10",
46
- "@types/node": "^22.10.9",
46
+ "@types/node": "^22.10.10",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.4.1",
50
- "eslint": "^9.18.0",
50
+ "eslint": "^9.19.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.17.0",