@abaplint/transpiler 2.5.37 → 2.5.38
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.
|
@@ -115,7 +115,12 @@ class MethodImplementationTranspiler {
|
|
|
115
115
|
else {
|
|
116
116
|
throw new Error("MethodImplementationTranspiler, unknown default param type");
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
if (identifier.getMeta().includes("pass_by_value" /* abaplint.IdentifierMeta.PassByValue */)) {
|
|
119
|
+
after += "if (" + unique + " === undefined || " + unique + "." + varName + " === undefined) {" + varName + ".set(" + val + ");}\n";
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
after += "if (" + unique + " === undefined || " + unique + "." + varName + " === undefined) {" + varName + " = " + val + ";}\n";
|
|
123
|
+
}
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
126
|
else if (identifier.getMeta().includes("returning" /* abaplint.IdentifierMeta.MethodReturning */)) {
|