@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
|
|
184
|
+
let prefixRTTI = "";
|
|
185
185
|
if (this.parentObj.getType() === "PROG") {
|
|
186
|
-
|
|
186
|
+
prefixRTTI = "\\PROGRAM=" + this.parentObj.getName();
|
|
187
187
|
}
|
|
188
188
|
else if (this.parentObj.getType() === "CLAS") {
|
|
189
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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) {
|
package/build/src/registry.js
CHANGED