@abaplint/transpiler 2.10.54 → 2.10.56
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.
|
@@ -92,7 +92,7 @@ export async function initializeABAP() {\n`;
|
|
|
92
92
|
}
|
|
93
93
|
else if (obj instanceof abaplint.Objects.Interface
|
|
94
94
|
|| obj instanceof abaplint.Objects.FunctionGroup
|
|
95
|
-
|| obj instanceof abaplint.Objects.Program
|
|
95
|
+
// hmm || obj instanceof abaplint.Objects.Program
|
|
96
96
|
|| obj instanceof abaplint.Objects.Class) {
|
|
97
97
|
list.push(name);
|
|
98
98
|
}
|
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "2.10.56",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.113.
|
|
32
|
+
"@abaplint/core": "^2.113.121",
|
|
33
33
|
"source-map": "^0.7.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/chai": "^4.3.20",
|
|
37
37
|
"@types/mocha": "^10.0.10",
|
|
38
38
|
"chai": "^4.5.0",
|
|
39
|
-
"mocha": "^11.
|
|
39
|
+
"mocha": "^11.4.0",
|
|
40
40
|
"source-map-support": "^0.5.21",
|
|
41
41
|
"typescript": "^5.8.3"
|
|
42
42
|
}
|