@abaplint/core 2.110.5 → 2.110.7

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.
@@ -4,6 +4,7 @@ exports.SQLCompare = void 0;
4
4
  const combi_1 = require("../combi");
5
5
  const _1 = require(".");
6
6
  const version_1 = require("../../../version");
7
+ const tokens_1 = require("../../1_lexer/tokens");
7
8
  class SQLCompare extends combi_1.Expression {
8
9
  getRunnable() {
9
10
  const subSelect = (0, combi_1.seq)("(", _1.Select, ")");
@@ -13,7 +14,9 @@ class SQLCompare extends combi_1.Expression {
13
14
  const source = new _1.SQLSource();
14
15
  const sub = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("ALL", "ANY", "SOME")), subSelect);
15
16
  const arith = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/"), _1.SQLFieldName)));
16
- const rett = (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLFunction, (0, combi_1.seq)(_1.SQLFieldName, (0, combi_1.optPrio)(arith))), (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));
17
+ const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
18
+ 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)));
19
+ const rett = (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLFunction, (0, combi_1.seq)(_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));
17
20
  const exists = (0, combi_1.seq)("EXISTS", subSelect);
18
21
  return (0, combi_1.altPrio)(exists, _1.Dynamic, rett);
19
22
  }
@@ -42,7 +42,10 @@ class Data {
42
42
  // INCLUDES
43
43
  const typeToken = (_a = c.findFirstExpression(Expressions.TypeName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
44
44
  const typeName = typeToken === null || typeToken === void 0 ? void 0 : typeToken.getStr();
45
- const foundId = scope.findType(typeName);
45
+ let foundId = scope.findType(typeName);
46
+ if (foundId === undefined) {
47
+ foundId = scope.findVariable(typeName);
48
+ }
46
49
  let found = foundId === null || foundId === void 0 ? void 0 : foundId.getType();
47
50
  if (found === undefined) {
48
51
  const f = scope.getDDIC().lookupTableOrView(typeName).type;
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.110.5";
70
+ return "2.110.7";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.110.5",
3
+ "version": "2.110.7",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -53,13 +53,13 @@
53
53
  "@microsoft/api-extractor": "^7.47.0",
54
54
  "@types/chai": "^4.3.16",
55
55
  "@types/mocha": "^10.0.7",
56
- "@types/node": "^20.14.9",
56
+ "@types/node": "^20.14.10",
57
57
  "chai": "^4.4.1",
58
58
  "eslint": "^8.57.0",
59
- "mocha": "^10.5.2",
59
+ "mocha": "^10.6.0",
60
60
  "c8": "^10.1.2",
61
61
  "source-map-support": "^0.5.21",
62
- "ts-json-schema-generator": "=2.0.1",
62
+ "ts-json-schema-generator": "^2.3.0",
63
63
  "typescript": "^5.5.3"
64
64
  },
65
65
  "dependencies": {