@abaplint/cli 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.
Files changed (2) hide show
  1. package/build/cli.js +15 -6
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -48397,8 +48397,12 @@ class DataElement extends _abstract_object_1.AbstractObject {
48397
48397
  references.push({ object: lookup.object });
48398
48398
  }
48399
48399
  reg.getDDICReferences().setUsing(this, references);
48400
- this.parsedType = lookup.type;
48401
- return this.parsedType;
48400
+ if (!(lookup.type instanceof Types.UnknownType)) {
48401
+ // the referenced type might not exist or contain syntax errors(for CLAS)
48402
+ // so dont cache it, expect the user to fix it
48403
+ this.parsedType = lookup.type;
48404
+ }
48405
+ return lookup.type;
48402
48406
  }
48403
48407
  parse() {
48404
48408
  var _a, _b, _c;
@@ -54673,7 +54677,7 @@ class Registry {
54673
54677
  }
54674
54678
  static abaplintVersion() {
54675
54679
  // magic, see build script "version.sh"
54676
- return "2.113.147";
54680
+ return "2.113.149";
54677
54681
  }
54678
54682
  getDDICReferences() {
54679
54683
  return this.ddicReferences;
@@ -71051,15 +71055,20 @@ This rule makes sure the spaces are consistently required across the language.`,
71051
71055
  return undefined;
71052
71056
  }
71053
71057
  checkSource(cond) {
71058
+ var _a, _b;
71054
71059
  const children = cond.getAllTokens();
71055
71060
  if (children.length < 2) {
71056
71061
  return undefined;
71057
71062
  }
71058
71063
  if (children.length >= 4
71059
71064
  && children[0].getStr().toUpperCase() === "CONV") {
71060
- const first = children[2];
71061
- const second = children[3];
71062
- if (first.getRow() === second.getRow()
71065
+ const directChildren = cond.getChildren();
71066
+ const first = (_a = directChildren[2]) === null || _a === void 0 ? void 0 : _a.getLastToken();
71067
+ const second = (_b = directChildren[3]) === null || _b === void 0 ? void 0 : _b.getFirstToken();
71068
+ if (first
71069
+ && first.getStr() === "("
71070
+ && second
71071
+ && first.getRow() === second.getRow()
71063
71072
  && first.getCol() + 1 === second.getStart().getCol()) {
71064
71073
  return second.getStart();
71065
71074
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.147",
3
+ "version": "2.113.149",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.147",
41
+ "@abaplint/core": "^2.113.149",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",
45
- "@types/node": "^24.0.15",
45
+ "@types/node": "^24.1.0",
46
46
  "@types/progress": "^2.0.7",
47
47
  "chai": "^4.5.0",
48
48
  "p-limit": "^3.1.0",