@abaplint/transpiler-cli 2.13.45 → 2.13.46

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.
Files changed (2) hide show
  1. package/build/bundle.js +5 -0
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -119789,10 +119789,15 @@ class Traversal {
119789
119789
  }
119790
119790
  buildThisAttributes(def, cName) {
119791
119791
  let ret = "";
119792
+ const constants = def.getAttributes()?.getConstants() || [];
119792
119793
  for (const a of def.getAttributes()?.getAll() || []) {
119793
119794
  let escaped = Traversal.escapeNamespace(a.getName().toLowerCase());
119794
119795
  if (a.getMeta().includes("static" /* abaplint.IdentifierMeta.Static */) === true) {
119795
119796
  ret += "this." + escaped + " = " + cName + "." + escaped + ";\n";
119797
+ const isConstant = constants.some(c => c.getName().toUpperCase() === a.getName().toUpperCase());
119798
+ if (a.getVisibility() === abaplint.Visibility.Private && isConstant === false) {
119799
+ ret += `this.FRIENDS_ACCESS_INSTANCE["${escaped}"] = this.${escaped};\n`;
119800
+ }
119796
119801
  }
119797
119802
  else {
119798
119803
  if (a.getVisibility() === abaplint.Visibility.Private) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.13.45",
3
+ "version": "2.13.46",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.120.5",
31
- "@abaplint/transpiler": "^2.13.45",
31
+ "@abaplint/transpiler": "^2.13.46",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.12.2",
34
34
  "@types/progress": "^2.0.7",