@abaplint/cli 2.115.10 → 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 +9 -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));
@@ -31503,8 +31503,9 @@ class CreateObject {
31503
31503
  target_1.Target.runSyntax(t, input);
31504
31504
  }
31505
31505
  const t = node.findDirectExpression(Expressions.Target);
31506
+ let found = undefined;
31506
31507
  if (t) {
31507
- const found = target_1.Target.runSyntax(t, input);
31508
+ found = target_1.Target.runSyntax(t, input);
31508
31509
  if (found instanceof basic_1.VoidType) {
31509
31510
  // do nothing
31510
31511
  }
@@ -31556,7 +31557,11 @@ class CreateObject {
31556
31557
  for (const t of node.findDirectExpressions(Expressions.Dynamic)) {
31557
31558
  dynamic_1.Dynamic.runSyntax(t, input);
31558
31559
  }
31559
- 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 });
31560
31565
  this.validateParameters(cdef, node, input);
31561
31566
  }
31562
31567
  validateParameters(cdef, node, input) {
@@ -55310,7 +55315,7 @@ class Registry {
55310
55315
  }
55311
55316
  static abaplintVersion() {
55312
55317
  // magic, see build script "version.sh"
55313
- return "2.115.10";
55318
+ return "2.115.11";
55314
55319
  }
55315
55320
  getDDICReferences() {
55316
55321
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.115.10",
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.10",
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",