@abaplint/transpiler 1.7.0 → 1.7.1
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.
- package/build/src/traversal.js +6 -2
- package/package.json +1 -1
package/build/src/traversal.js
CHANGED
|
@@ -246,7 +246,6 @@ class Traversal {
|
|
|
246
246
|
return undefined;
|
|
247
247
|
}
|
|
248
248
|
buildConstructorContents(scope, def, inputName) {
|
|
249
|
-
var _a;
|
|
250
249
|
/*
|
|
251
250
|
const vars = scope?.getData().vars;
|
|
252
251
|
if (vars === undefined || Object.keys(vars).length === 0) {
|
|
@@ -294,7 +293,12 @@ class Traversal {
|
|
|
294
293
|
}
|
|
295
294
|
// attributes from directly implemented interfaces(not interfaces implemented in super classes)
|
|
296
295
|
for (const i of def.getImplementing()) {
|
|
297
|
-
|
|
296
|
+
let intf = scope === null || scope === void 0 ? void 0 : scope.findInterfaceDefinition(i.name);
|
|
297
|
+
if (intf === undefined) {
|
|
298
|
+
const iglobal = this.reg.getObject("INTF", i.name);
|
|
299
|
+
intf = iglobal === null || iglobal === void 0 ? void 0 : iglobal.getDefinition();
|
|
300
|
+
}
|
|
301
|
+
for (const a of (intf === null || intf === void 0 ? void 0 : intf.getAttributes().getAll()) || []) {
|
|
298
302
|
if (a.getMeta().includes("static" /* Static */) === true) {
|
|
299
303
|
continue;
|
|
300
304
|
}
|