@abaplint/transpiler-cli 2.6.36 → 2.6.37
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 +12 -3
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -71783,7 +71783,7 @@ class CallTranspiler {
|
|
|
71783
71783
|
post += ";";
|
|
71784
71784
|
const exceptions = node.findFirstExpression(abaplint.Expressions.ParameterListExceptions);
|
|
71785
71785
|
if (exceptions) {
|
|
71786
|
-
const build =
|
|
71786
|
+
const build = CallTranspiler.buildExceptions(exceptions);
|
|
71787
71787
|
pre = build.pre + pre;
|
|
71788
71788
|
post += build.post;
|
|
71789
71789
|
}
|
|
@@ -71817,7 +71817,7 @@ class CallTranspiler {
|
|
|
71817
71817
|
}
|
|
71818
71818
|
const exceptions = node.findFirstExpression(abaplint.Expressions.ParameterListExceptions);
|
|
71819
71819
|
if (exceptions) {
|
|
71820
|
-
const build =
|
|
71820
|
+
const build = CallTranspiler.buildExceptions(exceptions);
|
|
71821
71821
|
pre = build.pre + pre;
|
|
71822
71822
|
post += build.post;
|
|
71823
71823
|
}
|
|
@@ -71833,7 +71833,7 @@ class CallTranspiler {
|
|
|
71833
71833
|
}
|
|
71834
71834
|
throw new Error("CallTranspiler, todo");
|
|
71835
71835
|
}
|
|
71836
|
-
buildExceptions(node) {
|
|
71836
|
+
static buildExceptions(node) {
|
|
71837
71837
|
var _a;
|
|
71838
71838
|
let pre = "";
|
|
71839
71839
|
let post = "";
|
|
@@ -71881,6 +71881,7 @@ exports.CallFunctionTranspiler = void 0;
|
|
|
71881
71881
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
71882
71882
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
71883
71883
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
71884
|
+
const call_1 = __webpack_require__(/*! ./call */ "./node_modules/@abaplint/transpiler/build/src/statements/call.js");
|
|
71884
71885
|
class CallFunctionTranspiler {
|
|
71885
71886
|
transpile(node, traversal) {
|
|
71886
71887
|
var _a, _b;
|
|
@@ -71903,6 +71904,10 @@ class CallFunctionTranspiler {
|
|
|
71903
71904
|
param = traversal.traverse(fmp).getCode();
|
|
71904
71905
|
}
|
|
71905
71906
|
const ret = new chunk_1.Chunk();
|
|
71907
|
+
const exceptions = node.findFirstExpression(abaplint.Expressions.ParameterListExceptions);
|
|
71908
|
+
if (exceptions) {
|
|
71909
|
+
ret.appendString("try {\n");
|
|
71910
|
+
}
|
|
71906
71911
|
const dest = (_b = node.findDirectExpression(abaplint.Expressions.Destination)) === null || _b === void 0 ? void 0 : _b.findDirectExpression(abaplint.Expressions.Source);
|
|
71907
71912
|
if (dest) {
|
|
71908
71913
|
const s = new expressions_1.SourceTranspiler(true).transpile(dest, traversal);
|
|
@@ -71912,6 +71917,10 @@ class CallFunctionTranspiler {
|
|
|
71912
71917
|
else {
|
|
71913
71918
|
ret.appendString(`await abap.FunctionModules[${fmname}](${param});`);
|
|
71914
71919
|
}
|
|
71920
|
+
if (exceptions) {
|
|
71921
|
+
const build = call_1.CallTranspiler.buildExceptions(exceptions);
|
|
71922
|
+
ret.appendString(build.post);
|
|
71923
|
+
}
|
|
71915
71924
|
return ret;
|
|
71916
71925
|
}
|
|
71917
71926
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.37",
|
|
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.6.
|
|
28
|
+
"@abaplint/transpiler": "^2.6.37",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|