@abaplint/cli 2.115.9 → 2.115.11

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 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -8256,7 +8256,7 @@ class SQLCompare extends combi_1.Expression {
8256
8256
  const nul = (0, combi_1.seq)("IS", (0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)("NULL", (0, combi_1.ver)(version_1.Version.v753, "INITIAL")));
8257
8257
  const source = new _1.SQLSource();
8258
8258
  const sub = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("ALL", "ANY", "SOME")), (0, combi_1.altPrio)(subSelect, subSelectDouble));
8259
- const arith = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/"), _1.SQLFieldName)));
8259
+ const arith = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/"), _1.SQLFieldName)), version_1.Version.OpenABAP);
8260
8260
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
8261
8261
  const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
8262
8262
  const rett = (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLFunction, _1.ConstantString, (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLPath, _1.SQLFieldName), (0, combi_1.optPrio)(arith)), at), (0, combi_1.altPrio)((0, combi_1.seq)(_1.SQLCompareOperator, (0, combi_1.altPrio)(sub, source)), (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)(_1.SQLIn, like, between)), nul));
@@ -28061,6 +28061,7 @@ const sql_order_by_1 = __webpack_require__(/*! ./sql_order_by */ "./node_modules
28061
28061
  const dynamic_1 = __webpack_require__(/*! ./dynamic */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/dynamic.js");
28062
28062
  const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
28063
28063
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
28064
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
28064
28065
  const isSimple = /^\w+$/;
28065
28066
  class Select {
28066
28067
  static runSyntax(node, input, skipImplicitInto = false) {
@@ -28312,6 +28313,16 @@ class Select {
28312
28313
  if (field) {
28313
28314
  return field;
28314
28315
  }
28316
+ else if (fields[0].code === "COUNT(*)") {
28317
+ if (scope.getVersion() >= version_1.Version.v750
28318
+ || scope.getVersion() === version_1.Version.OpenABAP
28319
+ || scope.getVersion() === version_1.Version.Cloud) {
28320
+ return new basic_1.Integer8Type();
28321
+ }
28322
+ else {
28323
+ return basic_1.IntegerType.get();
28324
+ }
28325
+ }
28315
28326
  else {
28316
28327
  // todo: aggregated/calculated values
28317
28328
  return basic_1.VoidType.get("SELECT_todo11");
@@ -31492,8 +31503,9 @@ class CreateObject {
31492
31503
  target_1.Target.runSyntax(t, input);
31493
31504
  }
31494
31505
  const t = node.findDirectExpression(Expressions.Target);
31506
+ let found = undefined;
31495
31507
  if (t) {
31496
- const found = target_1.Target.runSyntax(t, input);
31508
+ found = target_1.Target.runSyntax(t, input);
31497
31509
  if (found instanceof basic_1.VoidType) {
31498
31510
  // do nothing
31499
31511
  }
@@ -31545,7 +31557,11 @@ class CreateObject {
31545
31557
  for (const t of node.findDirectExpressions(Expressions.Dynamic)) {
31546
31558
  dynamic_1.Dynamic.runSyntax(t, input);
31547
31559
  }
31548
- input.scope.addReference(t === null || t === void 0 ? void 0 : t.getFirstToken(), cdef, _reference_1.ReferenceType.ConstructorReference, input.filename, { ooName: cdef === null || cdef === void 0 ? void 0 : cdef.getName() });
31560
+ let ooName = cdef === null || cdef === void 0 ? void 0 : cdef.getName();
31561
+ if (ooName === undefined && found instanceof basic_1.VoidType) {
31562
+ ooName = found.getVoided();
31563
+ }
31564
+ input.scope.addReference(t === null || t === void 0 ? void 0 : t.getFirstToken(), cdef, _reference_1.ReferenceType.ConstructorReference, input.filename, { ooName: ooName });
31549
31565
  this.validateParameters(cdef, node, input);
31550
31566
  }
31551
31567
  validateParameters(cdef, node, input) {
@@ -55299,7 +55315,7 @@ class Registry {
55299
55315
  }
55300
55316
  static abaplintVersion() {
55301
55317
  // magic, see build script "version.sh"
55302
- return "2.115.9";
55318
+ return "2.115.11";
55303
55319
  }
55304
55320
  getDDICReferences() {
55305
55321
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.115.9",
3
+ "version": "2.115.11",
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.115.9",
41
+ "@abaplint/core": "^2.115.11",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",