@abaplint/cli 2.113.37 → 2.113.39

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 +5 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -7501,6 +7501,7 @@ const sql_hints_1 = __webpack_require__(/*! ./sql_hints */ "./node_modules/@abap
7501
7501
  const sql_field_list_loop_1 = __webpack_require__(/*! ./sql_field_list_loop */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_field_list_loop.js");
7502
7502
  const sql_up_to_1 = __webpack_require__(/*! ./sql_up_to */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_up_to.js");
7503
7503
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
7504
+ // note: SELECT loops are matched before single statement SELECTs
7504
7505
  class SelectLoop extends combi_1.Expression {
7505
7506
  getRunnable() {
7506
7507
  const where = (0, combi_1.seq)("WHERE", _1.SQLCond);
@@ -7510,7 +7511,7 @@ class SelectLoop extends combi_1.Expression {
7510
7511
  const packTab = (0, combi_1.seq)(pack, _1.SQLIntoTable);
7511
7512
  const into = (0, combi_1.altPrio)(sql_into_structure_1.SQLIntoStructure, _1.SQLIntoList);
7512
7513
  const perm = (0, combi_1.per)(_1.SQLFrom, where, sql_up_to_1.SQLUpTo, sql_order_by_1.SQLOrderBy, sql_having_1.SQLHaving, _1.SQLClient, bypass, _1.SQLGroupBy, _1.SQLForAllEntries, (0, combi_1.alt)(tab, into, packTab));
7513
- const strict = (0, combi_1.seq)(_1.SQLFrom, (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields), (0, combi_1.optPrio)((0, combi_1.seq)(where, into, sql_up_to_1.SQLUpTo)));
7514
+ const strict = (0, combi_1.seq)(_1.SQLFrom, (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields), (0, combi_1.optPrio)((0, combi_1.seq)(where, (0, combi_1.optPrio)(sql_order_by_1.SQLOrderBy), into, sql_up_to_1.SQLUpTo)));
7514
7515
  const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)((0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), sql_field_list_loop_1.SQLFieldListLoop, perm), strict), (0, combi_1.optPrio)(sql_hints_1.SQLHints));
7515
7516
  return ret;
7516
7517
  }
@@ -35549,6 +35550,7 @@ class StatementFlow {
35549
35550
  }
35550
35551
  else if (type instanceof Structures.Data
35551
35552
  || type instanceof Structures.Constants
35553
+ || type instanceof Structures.Statics
35552
35554
  || type instanceof Structures.Types) {
35553
35555
  // these doesnt affect control flow, so just take the first statement
35554
35556
  const statement = n.getFirstStatement();
@@ -40350,7 +40352,7 @@ class CDSCondition extends combi_1.Expression {
40350
40352
  const left = (0, combi_1.alt)(name, _1.CDSFunction, _1.CDSString);
40351
40353
  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));
40352
40354
  const is = (0, combi_1.seq)(left, "IS", (0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)("INITIAL", "NULL"));
40353
- const condition = (0, combi_1.alt)(compare, is);
40355
+ const condition = (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), (0, combi_1.alt)(compare, is));
40354
40356
  const paren = (0, combi_1.seq)("(", CDSCondition, ")");
40355
40357
  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))));
40356
40358
  }
@@ -52972,7 +52974,7 @@ class Registry {
52972
52974
  }
52973
52975
  static abaplintVersion() {
52974
52976
  // magic, see build script "version.sh"
52975
- return "2.113.37";
52977
+ return "2.113.39";
52976
52978
  }
52977
52979
  getDDICReferences() {
52978
52980
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.37",
3
+ "version": "2.113.39",
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.37",
41
+ "@abaplint/core": "^2.113.39",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",