@abaplint/transpiler 2.10.54 → 2.10.55

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.
@@ -73,10 +73,18 @@ class CallTranspiler {
73
73
  const id = scope?.getParent()?.getParent()?.getIdentifier();
74
74
  if (id?.stype === abaplint.ScopeType.ClassImplementation
75
75
  && m.def.getClassName().toUpperCase() === id.sname.toUpperCase()) {
76
+ ms = ms.replace("await this.me.get().", "await this.");
76
77
  ms = ms.replace("await this.", "await this.#");
77
78
  }
78
79
  else {
79
- throw new Error("CallTranspiler, todo, refactor CALL");
80
+ if (ms.includes(".get().")) {
81
+ let last = ms.split(".");
82
+ last = last[last.length - 1];
83
+ ms = ms.replace(".get()." + last, ".get().FRIENDS_ACCESS['" + last + "']");
84
+ }
85
+ else {
86
+ throw new Error("CallTranspiler, todo, refactor CALL");
87
+ }
80
88
  }
81
89
  }
82
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.10.54",
3
+ "version": "2.10.55",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",