@abaplint/core 2.97.16 → 2.97.17

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.
@@ -181,16 +181,19 @@ class CurrentScope {
181
181
  if (name === undefined) {
182
182
  return { found: false };
183
183
  }
184
- let RTTIPrefix = "";
184
+ let prefixRTTI = "";
185
185
  if (this.parentObj.getType() === "PROG") {
186
- RTTIPrefix = "\\PROGRAM=" + this.parentObj.getName();
186
+ prefixRTTI = "\\PROGRAM=" + this.parentObj.getName();
187
187
  }
188
188
  else if (this.parentObj.getType() === "CLAS") {
189
- RTTIPrefix = "\\CLASS-POOL=" + this.parentObj.getName();
189
+ prefixRTTI = "\\CLASS-POOL=" + this.parentObj.getName();
190
190
  }
191
191
  const findLocalClass = (_a = this.current) === null || _a === void 0 ? void 0 : _a.findClassDefinition(name);
192
192
  if (findLocalClass) {
193
- return { found: true, id: findLocalClass, type: _reference_1.ReferenceType.ObjectOrientedReference, ooType: "CLAS", RTTIName: RTTIPrefix + "\\CLASS=" + findLocalClass.getName() };
193
+ if (findLocalClass.isGlobal() === true) {
194
+ prefixRTTI = "";
195
+ }
196
+ return { found: true, id: findLocalClass, type: _reference_1.ReferenceType.ObjectOrientedReference, ooType: "CLAS", RTTIName: prefixRTTI + "\\CLASS=" + findLocalClass.getName() };
194
197
  }
195
198
  const globalClas = this.reg.getObject("CLAS", name);
196
199
  if (globalClas) {
@@ -198,7 +201,10 @@ class CurrentScope {
198
201
  }
199
202
  const findLocalInterface = (_b = this.current) === null || _b === void 0 ? void 0 : _b.findInterfaceDefinition(name);
200
203
  if (findLocalInterface) {
201
- return { found: true, id: findLocalInterface, type: _reference_1.ReferenceType.ObjectOrientedReference, ooType: "INTF", RTTIName: RTTIPrefix + "\\INTERFACE=" + findLocalInterface.getName() };
204
+ if (findLocalInterface.isGlobal() === true) {
205
+ prefixRTTI = "";
206
+ }
207
+ return { found: true, id: findLocalInterface, type: _reference_1.ReferenceType.ObjectOrientedReference, ooType: "INTF", RTTIName: prefixRTTI + "\\INTERFACE=" + findLocalInterface.getName() };
202
208
  }
203
209
  const globalIntf = this.reg.getObject("INTF", name);
204
210
  if (globalIntf) {
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.97.16";
66
+ return "2.97.17";
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.97.16",
3
+ "version": "2.97.17",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",