@abaplint/cli 2.113.55 → 2.113.56

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 +26 -26
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -7292,10 +7292,10 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
7292
7292
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
7293
7293
  class RaiseWith extends combi_1.Expression {
7294
7294
  getRunnable() {
7295
- const wit = (0, combi_1.seq)("WITH", _1.SimpleSource1, (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1));
7295
+ const wit = (0, combi_1.seq)(_1.SimpleSource1, (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1));
7296
7296
  // todo: I guess this is from version something?
7297
- const witComplex = (0, combi_1.seq)("WITH", _1.Source, (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source));
7298
- return (0, combi_1.alt)(wit, witComplex);
7297
+ const witComplex = (0, combi_1.seq)(_1.Source, (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source));
7298
+ return (0, combi_1.seq)("WITH", (0, combi_1.altPrio)(witComplex, wit));
7299
7299
  }
7300
7300
  }
7301
7301
  exports.RaiseWith = RaiseWith;
@@ -7868,7 +7868,7 @@ const dynamic_1 = __webpack_require__(/*! ./dynamic */ "./node_modules/@abaplint
7868
7868
  const sql_arithmetics_1 = __webpack_require__(/*! ./sql_arithmetics */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetics.js");
7869
7869
  class SQLAggregation extends combi_1.Expression {
7870
7870
  getRunnable() {
7871
- const f = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction, _1.SQLCase));
7871
+ const f = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)(_1.SQLCase, sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction));
7872
7872
  const fparen = (0, combi_1.seq)("(", _1.Field, ")");
7873
7873
  const count = (0, combi_1.seq)("COUNT", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), (0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)("*", _1.Field, fparen), ")");
7874
7874
  const max = (0, combi_1.seq)("MAX", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), f, ")");
@@ -14834,7 +14834,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
14834
14834
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
14835
14835
  class ModifyLine {
14836
14836
  getMatcher() {
14837
- const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT"), "=", expressions_1.Source);
14837
+ const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT", "COLOR"), "=", expressions_1.Source);
14838
14838
  const from = (0, combi_1.seq)("FROM", expressions_1.Source);
14839
14839
  const value = (0, combi_1.seq)("FIELD VALUE", (0, combi_1.plus)((0, combi_1.seq)(expressions_1.Source, (0, combi_1.optPrio)(from))));
14840
14840
  const format = (0, combi_1.seq)("FIELD FORMAT", expressions_1.Source, (0, combi_1.opt)(form));
@@ -14842,7 +14842,7 @@ class ModifyLine {
14842
14842
  const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
14843
14843
  const page = (0, combi_1.seq)("OF PAGE", expressions_1.Source);
14844
14844
  const ocp = (0, combi_1.str)("OF CURRENT PAGE");
14845
- const lineFormat = (0, combi_1.seq)("LINE FORMAT", (0, combi_1.alt)("INPUT OFF", "INVERSE", "RESET", "INTENSIFIED"));
14845
+ const lineFormat = (0, combi_1.seq)("LINE FORMAT", (0, combi_1.per)("INPUT OFF", "INVERSE", "RESET", "INTENSIFIED", "COLOR COL_NORMAL"));
14846
14846
  const onOff = (0, combi_1.alt)("ON", "OFF");
14847
14847
  const intensified = (0, combi_1.seq)("INTENSIFIED", onOff);
14848
14848
  const options = (0, combi_1.per)(index, value, format, page, lineFormat, lineValue, ocp, intensified, expressions_1.Color);
@@ -26813,7 +26813,7 @@ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ ".
26813
26813
  const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
26814
26814
  class RaiseWith {
26815
26815
  runSyntax(node, input) {
26816
- for (const f of node.findDirectExpressions(Expressions.SimpleSource1)) {
26816
+ for (const f of node.findAllExpressionsMulti([Expressions.SimpleSource1, Expressions.Source])) {
26817
26817
  new source_1.Source().runSyntax(f, input);
26818
26818
  }
26819
26819
  }
@@ -51634,9 +51634,10 @@ class Table extends _abstract_object_1.AbstractObject {
51634
51634
  references.push({ object: lookup.object });
51635
51635
  }
51636
51636
  }
51637
- else if (field.FIELDNAME === ".INCLUDE" || field.FIELDNAME === ".INCLU--AP") { // incude or append structure
51637
+ else if (field.FIELDNAME === ".INCLUDE"
51638
+ || field.FIELDNAME.startsWith(".INCLU-")) {
51638
51639
  if (field.PRECFIELD === undefined) {
51639
- return new Types.UnknownType("Table, parser error, PRECFIELD undefined");
51640
+ return new Types.UnknownType("Table, parser error, PRECFIELD undefined, " + this.getName());
51640
51641
  }
51641
51642
  const lookup = ddic.lookupTableOrView(field.PRECFIELD);
51642
51643
  let found = lookup.type;
@@ -51668,26 +51669,25 @@ class Table extends _abstract_object_1.AbstractObject {
51668
51669
  else {
51669
51670
  components.push({ name: field.FIELDNAME, type: found });
51670
51671
  }
51671
- }
51672
- else if (comptype === "S" && field.FIELDNAME.startsWith(".INCLU-")) {
51672
+ /*
51673
+ } else if (comptype === "S" && field.FIELDNAME.startsWith(".INCLU-")) {
51673
51674
  const lookup = ddic.lookupTableOrView(field.PRECFIELD);
51674
51675
  if (lookup.object) {
51675
- references.push({ object: lookup.object });
51676
+ references.push({object: lookup.object});
51676
51677
  }
51677
51678
  const found = lookup.type;
51678
51679
  if (found instanceof Types.VoidType) {
51679
- // set the full structure to void
51680
- return found;
51681
- }
51682
- else if (found instanceof Types.StructureType) {
51683
- const suffix = field.FIELDNAME.split("-")[1];
51684
- for (const c of found.getComponents()) {
51685
- components.push({ name: c.name + suffix, type: c.type });
51686
- }
51687
- }
51688
- else if (found instanceof Types.UnknownType) {
51689
- return found;
51690
- }
51680
+ // set the full structure to void
51681
+ return found;
51682
+ } else if (found instanceof Types.StructureType) {
51683
+ const suffix = field.FIELDNAME.split("-")[1];
51684
+ for (const c of found.getComponents()) {
51685
+ components.push({name: c.name + suffix, type: c.type});
51686
+ }
51687
+ } else if (found instanceof Types.UnknownType) {
51688
+ return found;
51689
+ }
51690
+ */
51691
51691
  }
51692
51692
  else if (comptype === "S") {
51693
51693
  const lookup = ddic.lookupTableOrView(field.ROLLNAME);
@@ -53134,7 +53134,7 @@ class Registry {
53134
53134
  }
53135
53135
  static abaplintVersion() {
53136
53136
  // magic, see build script "version.sh"
53137
- return "2.113.55";
53137
+ return "2.113.56";
53138
53138
  }
53139
53139
  getDDICReferences() {
53140
53140
  return this.ddicReferences;
@@ -59390,7 +59390,7 @@ ${indentation}CATCH ${className} INTO ${targetName}.`;
59390
59390
  }
59391
59391
  startToken = node.getFirstToken();
59392
59392
  }
59393
- const withs = ((_f = node.findDirectExpression(Expressions.RaiseWith)) === null || _f === void 0 ? void 0 : _f.findDirectExpressions(Expressions.SimpleSource1)) || [];
59393
+ const withs = ((_f = node.findDirectExpression(Expressions.RaiseWith)) === null || _f === void 0 ? void 0 : _f.findDirectExpressionsMulti([Expressions.SimpleSource1, Expressions.Source])) || [];
59394
59394
  const className = ((_g = node.findDirectExpression(Expressions.ClassName)) === null || _g === void 0 ? void 0 : _g.concatTokens()) || "ERROR";
59395
59395
  const uniqueName1 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
59396
59396
  const uniqueName2 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.55",
3
+ "version": "2.113.56",
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.55",
41
+ "@abaplint/core": "^2.113.56",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",