@abaplint/core 2.101.25 → 2.101.27

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.
@@ -8,7 +8,7 @@ const dynamic_1 = require("./dynamic");
8
8
  const sql_arithmetics_1 = require("./sql_arithmetics");
9
9
  class SQLAggregation extends combi_1.Expression {
10
10
  getRunnable() {
11
- const f = (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction);
11
+ const f = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction));
12
12
  const fparen = (0, combi_1.seq)("(", _1.Field, ")");
13
13
  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), ")");
14
14
  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, ")");
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.101.25";
68
+ return "2.101.27";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -1602,15 +1602,12 @@ ${indentation}${uniqueName}`;
1602
1602
  if (!(low.get() instanceof _statement_1.Unknown)) {
1603
1603
  return undefined;
1604
1604
  }
1605
- else if (!(high.get() instanceof Statements.Move)) {
1606
- return undefined;
1607
- }
1608
1605
  for (const child of high.findAllExpressionsRecursive(Expressions.StringTemplate)) {
1609
1606
  const templateTokens = child.getChildren();
1610
1607
  if (templateTokens.length !== 3
1611
1608
  || templateTokens[0].getFirstToken().getStr() !== "|{"
1612
1609
  || templateTokens[2].getFirstToken().getStr() !== "}|") {
1613
- return undefined;
1610
+ continue;
1614
1611
  }
1615
1612
  const templateSource = child.findDirectExpression(Expressions.StringTemplateSource);
1616
1613
  const formatting = (_a = templateSource === null || templateSource === void 0 ? void 0 : templateSource.findDirectExpression(Expressions.StringTemplateFormatting)) === null || _a === void 0 ? void 0 : _a.concatTokens();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.101.25",
3
+ "version": "2.101.27",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -53,7 +53,7 @@
53
53
  "@microsoft/api-extractor": "^7.36.0",
54
54
  "@types/chai": "^4.3.5",
55
55
  "@types/mocha": "^10.0.1",
56
- "@types/node": "^20.3.1",
56
+ "@types/node": "^20.3.2",
57
57
  "chai": "^4.3.7",
58
58
  "eslint": "^8.43.0",
59
59
  "mocha": "^10.2.0",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.1.3"
64
64
  },
65
65
  "dependencies": {
66
- "fast-xml-parser": "^4.2.4",
66
+ "fast-xml-parser": "^4.2.5",
67
67
  "json5": "^2.2.3",
68
68
  "vscode-languageserver-types": "^3.17.3"
69
69
  }