@abaplint/transpiler 2.1.76 → 2.1.77

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.
@@ -140,7 +140,7 @@ class Traversal {
140
140
  return name;
141
141
  }
142
142
  else if (this.isClassAttribute(t)) {
143
- name = "this." + name;
143
+ name = "this." + Traversal.escapeClassName(name);
144
144
  }
145
145
  else if (this.isBuiltinVariable(t)) {
146
146
  name = "abap.builtin." + name;
@@ -306,7 +306,7 @@ class Traversal {
306
306
  if (a.getMeta().includes("static" /* abaplint.IdentifierMeta.Static */) === true) {
307
307
  continue;
308
308
  }
309
- const n = name.toLowerCase() + "$" + a.getName().toLowerCase();
309
+ const n = Traversal.escapeClassName(name.toLowerCase()) + "$" + a.getName().toLowerCase();
310
310
  ret += "this." + n + " = " + new transpile_types_1.TranspileTypes().toType(a.getType()) + ";\n";
311
311
  }
312
312
  for (const i of (intf === null || intf === void 0 ? void 0 : intf.getImplementing()) || []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.1.76",
3
+ "version": "2.1.77",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",