@abaplint/core 2.95.21 → 2.95.22

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.
@@ -112,7 +112,12 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
112
112
  let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
113
113
  if (found === undefined) {
114
114
  const list = e.findDirectExpressions(expressions_1.CDSName);
115
- found = list[list.length - 1];
115
+ if (e.concatTokens().toUpperCase().includes(" REDIRECTED TO ")) {
116
+ found = list[0];
117
+ }
118
+ else {
119
+ found = list[list.length - 1];
120
+ }
116
121
  }
117
122
  if (found === undefined) {
118
123
  continue;
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.95.21";
66
+ return "2.95.22";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.95.21",
3
+ "version": "2.95.22",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",