@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.
@@ -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
- for (const a of ((_a = scope === null || scope === void 0 ? void 0 : scope.findInterfaceDefinition(i.name)) === null || _a === void 0 ? void 0 : _a.getAttributes().getAll()) || []) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",