@abaplint/core 2.113.147 → 2.113.149

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.
@@ -89,8 +89,12 @@ class DataElement extends _abstract_object_1.AbstractObject {
89
89
  references.push({ object: lookup.object });
90
90
  }
91
91
  reg.getDDICReferences().setUsing(this, references);
92
- this.parsedType = lookup.type;
93
- return this.parsedType;
92
+ if (!(lookup.type instanceof Types.UnknownType)) {
93
+ // the referenced type might not exist or contain syntax errors(for CLAS)
94
+ // so dont cache it, expect the user to fix it
95
+ this.parsedType = lookup.type;
96
+ }
97
+ return lookup.type;
94
98
  }
95
99
  parse() {
96
100
  var _a, _b, _c;
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.147";
70
+ return "2.113.149";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
@@ -217,15 +217,20 @@ This rule makes sure the spaces are consistently required across the language.`,
217
217
  return undefined;
218
218
  }
219
219
  checkSource(cond) {
220
+ var _a, _b;
220
221
  const children = cond.getAllTokens();
221
222
  if (children.length < 2) {
222
223
  return undefined;
223
224
  }
224
225
  if (children.length >= 4
225
226
  && children[0].getStr().toUpperCase() === "CONV") {
226
- const first = children[2];
227
- const second = children[3];
228
- if (first.getRow() === second.getRow()
227
+ const directChildren = cond.getChildren();
228
+ const first = (_a = directChildren[2]) === null || _a === void 0 ? void 0 : _a.getLastToken();
229
+ const second = (_b = directChildren[3]) === null || _b === void 0 ? void 0 : _b.getFirstToken();
230
+ if (first
231
+ && first.getStr() === "("
232
+ && second
233
+ && first.getRow() === second.getRow()
229
234
  && first.getCol() + 1 === second.getStart().getCol()) {
230
235
  return second.getStart();
231
236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.147",
3
+ "version": "2.113.149",
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.52.8",
54
54
  "@types/chai": "^4.3.20",
55
55
  "@types/mocha": "^10.0.10",
56
- "@types/node": "^24.0.15",
56
+ "@types/node": "^24.1.0",
57
57
  "chai": "^4.5.0",
58
58
  "eslint": "^9.31.0",
59
59
  "mocha": "^11.7.1",