@abaplint/transpiler-cli 2.7.109 → 2.7.110
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 +5 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -77859,10 +77859,14 @@ class MethodImplementationTranspiler {
|
|
|
77859
77859
|
if (identifier.getMeta().includes("exporting" /* abaplint.IdentifierMeta.MethodExporting */)) {
|
|
77860
77860
|
after += "let " + varName + " = " + unique + "?." + varName + " || " + new transpile_types_1.TranspileTypes().toType(identifier.getType()) + ";\n";
|
|
77861
77861
|
}
|
|
77862
|
-
else if (identifier.getMeta().includes("pass_by_value" /* abaplint.IdentifierMeta.PassByValue */) || isOptional)
|
|
77862
|
+
else if ((identifier.getMeta().includes("pass_by_value" /* abaplint.IdentifierMeta.PassByValue */) || isOptional)
|
|
77863
|
+
&& identifier.getType().isGeneric() === false) {
|
|
77863
77864
|
after += "let " + varName + " = " + new transpile_types_1.TranspileTypes().toType(identifier.getType()) + ";\n";
|
|
77864
77865
|
after += "if (" + unique + " && " + unique + "." + varName + ") {" + varName + ".set(" + unique + "." + varName + ");}\n";
|
|
77865
77866
|
}
|
|
77867
|
+
else if (identifier.getType().isGeneric()) {
|
|
77868
|
+
after += "let " + varName + " = " + unique + "?." + varName + " || " + new transpile_types_1.TranspileTypes().toType(identifier.getType()) + ";\n";
|
|
77869
|
+
}
|
|
77866
77870
|
else {
|
|
77867
77871
|
after += "let " + varName + " = " + unique + "?." + varName + ";\n";
|
|
77868
77872
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.110",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.110",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|