@abaplint/transpiler 2.5.67 → 2.5.68

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.
@@ -174,11 +174,11 @@ class Traversal {
174
174
  // TODO: visibility is wrong for classes
175
175
  for (const a of (def === null || def === void 0 ? void 0 : def.getAttributes().getAll()) || []) {
176
176
  const type = new transpile_types_1.TranspileTypes().toType(a.getType());
177
- attr.push(`"${a.getName().toUpperCase()}": {"type": ${type}, "visibility": "U", "is_constant": " "}`);
177
+ attr.push(`"${a.getName().toUpperCase()}": {"type": () => {return ${type};}, "visibility": "U", "is_constant": " "}`);
178
178
  }
179
179
  for (const a of (def === null || def === void 0 ? void 0 : def.getAttributes().getConstants()) || []) {
180
180
  const type = new transpile_types_1.TranspileTypes().toType(a.getType());
181
- attr.push(`"${a.getName().toUpperCase()}": {"type": ${type}, "visibility": "U", "is_constant": "X"}`);
181
+ attr.push(`"${a.getName().toUpperCase()}": {"type": () => {return ${type};}, "visibility": "U", "is_constant": "X"}`);
182
182
  }
183
183
  return attr.join(",\n");
184
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.5.67",
3
+ "version": "2.5.68",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",