@abaplint/cli 2.113.72 → 2.113.74

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 +20 -9
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -4346,7 +4346,7 @@ class Color extends combi_1.Expression {
4346
4346
  const texts = (0, combi_1.altPrio)("COL_BACKGROUND", "COL_HEADING", "COL_NORMAL", "COL_TOTAL", "COL_KEY", "COL_POSITIVE", "COL_NEGATIVE", "COL_GROUP");
4347
4347
  const value = (0, combi_1.alt)(eq, (0, combi_1.altPrio)("ON", "OFF", (0, combi_1.altPrio)(integers, texts)));
4348
4348
  const toggle = (0, combi_1.altPrio)("ON", "OFF");
4349
- return (0, combi_1.seq)("COLOR", value, (0, combi_1.opt)(toggle));
4349
+ return (0, combi_1.seq)("COLOR", (0, combi_1.opt)((0, combi_1.seq)(value, (0, combi_1.opt)(toggle))));
4350
4350
  }
4351
4351
  }
4352
4352
  exports.Color = Color;
@@ -5312,7 +5312,7 @@ class FieldSymbol extends combi_1.Expression {
5312
5312
  getRunnable() {
5313
5313
  // todo, this only allows one dash in the name
5314
5314
  const dashes = (0, combi_1.seq)((0, combi_1.regex)(/^<[\w\/%$\*]+$/), (0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/^[\w\/%$\*]+>$/));
5315
- return (0, combi_1.altPrio)((0, combi_1.regex)(/^<[\w\/%$\*]+>$/), dashes);
5315
+ return (0, combi_1.altPrio)((0, combi_1.regex)(/^<[\w\/%$\*\?]+>$/), dashes);
5316
5316
  }
5317
5317
  }
5318
5318
  exports.FieldSymbol = FieldSymbol;
@@ -8578,7 +8578,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
8578
8578
  class SQLHints extends combi_1.Expression {
8579
8579
  getRunnable() {
8580
8580
  const type = (0, combi_1.altPrio)("ORACLE", "ADABAS", "AS400", "DB2", "HDB", "MSSQLNT", "SYBASE", "DB6");
8581
- const ret = (0, combi_1.seq)("%_HINTS", (0, combi_1.plus)((0, combi_1.seq)(type, _1.Constant)));
8581
+ const ret = (0, combi_1.seq)("%_HINTS", (0, combi_1.plus)((0, combi_1.seq)(type, (0, combi_1.alt)(_1.Constant, _1.FieldSub))));
8582
8582
  return ret;
8583
8583
  }
8584
8584
  }
@@ -14553,7 +14553,7 @@ class Leave {
14553
14553
  getMatcher() {
14554
14554
  const retu = (0, combi_1.seq)(expressions_1.AndReturn, "TO SCREEN", expressions_1.Source);
14555
14555
  const transaction = (0, combi_1.seq)("TO TRANSACTION", expressions_1.Source, (0, combi_1.opt)("AND SKIP FIRST SCREEN"));
14556
- const ret = (0, combi_1.seq)("LEAVE", (0, combi_1.opt)((0, combi_1.alt)("TO CURRENT TRANSACTION", (0, combi_1.seq)((0, combi_1.opt)("TO"), "LIST-PROCESSING", (0, combi_1.opt)(retu)), "LIST-PROCESSING", "SCREEN", transaction, "PROGRAM", (0, combi_1.seq)("TO SCREEN", expressions_1.Source))));
14556
+ const ret = (0, combi_1.seq)("LEAVE", (0, combi_1.opt)((0, combi_1.alt)((0, combi_1.seq)("TO CURRENT TRANSACTION", (0, combi_1.opt)("AND SKIP FIRST SCREEN")), (0, combi_1.seq)((0, combi_1.opt)("TO"), "LIST-PROCESSING", (0, combi_1.opt)(retu)), "LIST-PROCESSING", "SCREEN", transaction, "PROGRAM", (0, combi_1.seq)("TO SCREEN", expressions_1.Source))));
14557
14557
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
14558
14558
  }
14559
14559
  }
@@ -16208,7 +16208,7 @@ class ScrollList {
16208
16208
  const line = (0, combi_1.seq)("LINE", expressions_1.Source);
16209
16209
  const column = (0, combi_1.seq)("TO COLUMN", expressions_1.Source);
16210
16210
  const to = (0, combi_1.seq)("TO", (0, combi_1.alt)("FIRST PAGE", "LAST PAGE", (0, combi_1.seq)("PAGE", expressions_1.Source)));
16211
- const ret = (0, combi_1.seq)("SCROLL LIST", (0, combi_1.per)(index, (0, combi_1.alt)(to, "BACKWARD", "FORWARD"), (0, combi_1.alt)("LEFT", "RIGHT"), column, line));
16211
+ const ret = (0, combi_1.seq)("SCROLL LIST", (0, combi_1.per)(index, (0, combi_1.alt)(to, "BACKWARD", "FORWARD"), (0, combi_1.seq)((0, combi_1.alt)("LEFT", "RIGHT"), (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.Source, "PLACES"))), column, line));
16212
16212
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
16213
16213
  }
16214
16214
  }
@@ -18050,7 +18050,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
18050
18050
  class While {
18051
18051
  getMatcher() {
18052
18052
  const vary = (0, combi_1.seq)("VARY", expressions_1.Target, "FROM", expressions_1.Source, "NEXT", expressions_1.Source);
18053
- return (0, combi_1.seq)("WHILE", expressions_1.Cond, (0, combi_1.opt)(vary));
18053
+ return (0, combi_1.seq)("WHILE", expressions_1.Cond, (0, combi_1.star)(vary));
18054
18054
  }
18055
18055
  }
18056
18056
  exports.While = While;
@@ -50464,6 +50464,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
50464
50464
  exports.Program = void 0;
50465
50465
  const _abap_object_1 = __webpack_require__(/*! ./_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
50466
50466
  const _dynpros_1 = __webpack_require__(/*! ./_dynpros */ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js");
50467
+ const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
50467
50468
  class Program extends _abap_object_1.ABAPObject {
50468
50469
  getType() {
50469
50470
  return "PROG";
@@ -50476,8 +50477,9 @@ class Program extends _abap_object_1.ABAPObject {
50476
50477
  return [main];
50477
50478
  }
50478
50479
  getDescription() {
50479
- // todo
50480
- return undefined;
50480
+ var _a;
50481
+ this.parseXML();
50482
+ return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
50481
50483
  }
50482
50484
  getAllowedNaming() {
50483
50485
  return {
@@ -50503,6 +50505,7 @@ class Program extends _abap_object_1.ABAPObject {
50503
50505
  }
50504
50506
  ////////////////////////////
50505
50507
  parseXML() {
50508
+ var _a, _b, _c;
50506
50509
  if (this.parsedXML !== undefined) {
50507
50510
  return;
50508
50511
  }
@@ -50512,15 +50515,23 @@ class Program extends _abap_object_1.ABAPObject {
50512
50515
  this.parsedXML = {
50513
50516
  isInclude: false,
50514
50517
  isModulePool: false,
50518
+ description: undefined,
50515
50519
  dynpros: [],
50516
50520
  };
50517
50521
  return;
50518
50522
  }
50523
+ let description = "";
50524
+ for (const t of (0, xml_utils_1.xmlToArray)((_c = (_b = (_a = parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]["asx:values"]) === null || _b === void 0 ? void 0 : _b.TPOOL) === null || _c === void 0 ? void 0 : _c.item)) {
50525
+ if ((t === null || t === void 0 ? void 0 : t.ID) === "R") {
50526
+ description = t.ENTRY ? (0, xml_utils_1.unescape)(t.ENTRY) : "";
50527
+ }
50528
+ }
50519
50529
  const dynpros = (0, _dynpros_1.parseDynpros)(parsed);
50520
50530
  this.parsedXML = {
50521
50531
  isInclude: file ? file.getRaw().includes("<SUBC>I</SUBC>") : false,
50522
50532
  isModulePool: file ? file.getRaw().includes("<SUBC>M</SUBC>") : false,
50523
50533
  dynpros: dynpros,
50534
+ description: description,
50524
50535
  };
50525
50536
  }
50526
50537
  }
@@ -53331,7 +53342,7 @@ class Registry {
53331
53342
  }
53332
53343
  static abaplintVersion() {
53333
53344
  // magic, see build script "version.sh"
53334
- return "2.113.72";
53345
+ return "2.113.74";
53335
53346
  }
53336
53347
  getDDICReferences() {
53337
53348
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.72",
3
+ "version": "2.113.74",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.72",
41
+ "@abaplint/core": "^2.113.74",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
@@ -50,7 +50,7 @@
50
50
  "eslint": "^9.16.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.14.1",
53
+ "memfs": "^4.15.0",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^11.0.1",
56
56
  "progress": "^2.0.3",