@abaplint/transpiler-cli 2.7.112 → 2.7.114
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 -4
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -71286,6 +71286,9 @@ class ConstantTranspiler {
|
|
|
71286
71286
|
if (parsed > 2147483647 || parsed < -2147483648) {
|
|
71287
71287
|
code = `new abap.types.Integer8().set(${concat})`;
|
|
71288
71288
|
}
|
|
71289
|
+
else if (parsed >= -10 && parsed <= 200) {
|
|
71290
|
+
code = `abap.IntegerFactory.get(${concat})`;
|
|
71291
|
+
}
|
|
71289
71292
|
else {
|
|
71290
71293
|
code = `new abap.types.Integer().set(${concat})`;
|
|
71291
71294
|
}
|
|
@@ -77858,14 +77861,12 @@ class MethodImplementationTranspiler {
|
|
|
77858
77861
|
// const isOptional = methodDef?.getOptional().includes(varName.toUpperCase());
|
|
77859
77862
|
const passByValue = identifier.getMeta().includes("pass_by_value" /* abaplint.IdentifierMeta.PassByValue */);
|
|
77860
77863
|
const type = identifier.getType();
|
|
77861
|
-
if (identifier.getMeta().includes("
|
|
77862
|
-
after += `let ${varName} = ${unique}?.${varName} || ${new transpile_types_1.TranspileTypes().toType(identifier.getType())};\n`;
|
|
77863
|
-
}
|
|
77864
|
-
else if (identifier.getMeta().includes("exporting" /* abaplint.IdentifierMeta.MethodExporting */)) {
|
|
77864
|
+
if (identifier.getMeta().includes("exporting" /* abaplint.IdentifierMeta.MethodExporting */)) {
|
|
77865
77865
|
after += `let ${varName} = ${unique}?.${varName} || ${new transpile_types_1.TranspileTypes().toType(identifier.getType())};\n`;
|
|
77866
77866
|
}
|
|
77867
77867
|
else if (identifier.getMeta().includes("importing" /* abaplint.IdentifierMeta.MethodImporting */) && type.isGeneric() === false) {
|
|
77868
77868
|
after += new transpile_types_1.TranspileTypes().declare(identifier) + "\n";
|
|
77869
|
+
// note: it might be nessesary to do a type conversion, eg char is passed to xstring parameter
|
|
77869
77870
|
after += "if (" + unique + " && " + unique + "." + varName + ") {" + varName + ".set(" + unique + "." + varName + ");}\n";
|
|
77870
77871
|
}
|
|
77871
77872
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.114",
|
|
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.114",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|