@abaplint/transpiler-cli 2.10.30 → 2.10.31
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/bundle.js +2 -4
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -78582,16 +78582,14 @@ class MethodSourceTranspiler {
|
|
|
78582
78582
|
else if (child.get() instanceof core_1.Expressions.Dynamic) {
|
|
78583
78583
|
const second = child.getChildren()[1];
|
|
78584
78584
|
const lookupException = traversal.lookupClassOrInterface("'CX_SY_DYN_CALL_ILLEGAL_METHOD'", child.getFirstToken(), true);
|
|
78585
|
-
if (second.get() instanceof core_1.Expressions.FieldChain) {
|
|
78585
|
+
if (second.get() instanceof core_1.Expressions.FieldChain && second instanceof core_1.Nodes.ExpressionNode) {
|
|
78586
78586
|
if (call.endsWith(".")) {
|
|
78587
78587
|
call = call.substring(0, call.length - 1);
|
|
78588
78588
|
}
|
|
78589
78589
|
if (call === "") {
|
|
78590
78590
|
call = "this";
|
|
78591
78591
|
}
|
|
78592
|
-
call
|
|
78593
|
-
call += traversal.traverse(second).getCode();
|
|
78594
|
-
call += ".get().toLowerCase().trimEnd()]";
|
|
78592
|
+
call = `abap.dynamicCallLookup(${call}, ${traversal.traverse(second).getCode()})`;
|
|
78595
78593
|
}
|
|
78596
78594
|
else if (second.get() instanceof core_1.Expressions.Constant) {
|
|
78597
78595
|
if (call === "") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.31",
|
|
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.113.107",
|
|
31
|
-
"@abaplint/transpiler": "^2.10.
|
|
31
|
+
"@abaplint/transpiler": "^2.10.31",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^22.13.13",
|
|
34
34
|
"@types/progress": "^2.0.7",
|