@abaplint/transpiler 2.5.72 → 2.5.73

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.
@@ -170,13 +170,14 @@ class Traversal {
170
170
  return undefined;
171
171
  }
172
172
  buildAttributes(def) {
173
+ var _a, _b;
173
174
  const attr = [];
174
175
  // TODO: visibility is wrong for classes
175
- for (const a of (def === null || def === void 0 ? void 0 : def.getAttributes().getAll()) || []) {
176
+ for (const a of ((_a = def === null || def === void 0 ? void 0 : def.getAttributes()) === null || _a === void 0 ? void 0 : _a.getAll()) || []) {
176
177
  const type = new transpile_types_1.TranspileTypes().toType(a.getType());
177
178
  attr.push(`"${a.getName().toUpperCase()}": {"type": () => {return ${type};}, "visibility": "U", "is_constant": " "}`);
178
179
  }
179
- for (const a of (def === null || def === void 0 ? void 0 : def.getAttributes().getConstants()) || []) {
180
+ for (const a of ((_b = def === null || def === void 0 ? void 0 : def.getAttributes()) === null || _b === void 0 ? void 0 : _b.getConstants()) || []) {
180
181
  const type = new transpile_types_1.TranspileTypes().toType(a.getType());
181
182
  attr.push(`"${a.getName().toUpperCase()}": {"type": () => {return ${type};}, "visibility": "U", "is_constant": "X"}`);
182
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.5.72",
3
+ "version": "2.5.73",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "author": "abaplint",
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@abaplint/core": "^2.96.2",
31
+ "@abaplint/core": "^2.97.0",
32
32
  "source-map": "^0.7.4"
33
33
  },
34
34
  "devDependencies": {