@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.
- package/build/src/traversal.js +2 -2
- package/package.json +1 -1
package/build/src/traversal.js
CHANGED
|
@@ -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()) || []) {
|