@abaplint/transpiler-cli 2.5.24 → 2.5.26
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 +6 -2
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -73538,10 +73538,14 @@ class MethodImplementationTranspiler {
|
|
|
73538
73538
|
}
|
|
73539
73539
|
after = after + new transpile_types_1.TranspileTypes().declare(identifier) + "\n";
|
|
73540
73540
|
const type = identifier.getType();
|
|
73541
|
-
|
|
73541
|
+
// todo, type X is also generic in method definitions, the real fix will be in abaplint
|
|
73542
|
+
const charGeneric = type instanceof abaplint.BasicTypes.CharacterType
|
|
73543
|
+
&& type.getLength() === 1
|
|
73544
|
+
&& type.getDDICName() === undefined
|
|
73545
|
+
&& type.getQualifiedName() === undefined;
|
|
73542
73546
|
if (identifier.getMeta().includes("importing" /* abaplint.IdentifierMeta.MethodImporting */)
|
|
73543
73547
|
&& type.isGeneric() === false
|
|
73544
|
-
&&
|
|
73548
|
+
&& charGeneric === false) {
|
|
73545
73549
|
after += "if (" + unique + " && " + unique + "." + varName + ") {" + varName + ".set(" + unique + "." + varName + ");}\n";
|
|
73546
73550
|
}
|
|
73547
73551
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.26",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.26",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|