@abaplint/transpiler-cli 2.4.6 → 2.4.8
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 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -68509,7 +68509,7 @@ class SQLCondTranspiler {
|
|
|
68509
68509
|
const chain = (_a = c.findDirectExpression(abaplint.Expressions.Dynamic)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(abaplint.Expressions.FieldChain);
|
|
68510
68510
|
if (chain) {
|
|
68511
68511
|
const code = new field_chain_1.FieldChainTranspiler(true).transpile(chain, traversal).getCode();
|
|
68512
|
-
ret += `" + (${code}
|
|
68512
|
+
ret += `" + abap.expandDynamic(${code}, (name) => {try { return eval(name);} catch {}}) + "`;
|
|
68513
68513
|
}
|
|
68514
68514
|
else {
|
|
68515
68515
|
throw new Error("SQL Condition, transpiler todo, dyn cond, " + c.concatTokens());
|
|
@@ -73708,6 +73708,7 @@ exports.RetryTranspiler = RetryTranspiler;
|
|
|
73708
73708
|
|
|
73709
73709
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73710
73710
|
exports.ReturnTranspiler = void 0;
|
|
73711
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
73711
73712
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
73712
73713
|
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
73713
73714
|
class ReturnTranspiler {
|
|
@@ -73725,6 +73726,10 @@ class ReturnTranspiler {
|
|
|
73725
73726
|
if (traversal.isInsideDoOrWhile(node)) {
|
|
73726
73727
|
pre = `abap.builtin.sy.get().index.set(${unique_identifier_1.UniqueIdentifier.getIndexBackup1()});\n`;
|
|
73727
73728
|
}
|
|
73729
|
+
if ((scope === null || scope === void 0 ? void 0 : scope.getIdentifier().stype) === abaplint.ScopeType.Method
|
|
73730
|
+
&& (scope === null || scope === void 0 ? void 0 : scope.getIdentifier().sname.toLowerCase()) === "constructor") {
|
|
73731
|
+
extra = " this";
|
|
73732
|
+
}
|
|
73728
73733
|
return new chunk_1.Chunk().append(pre + "return" + extra + ";", node, traversal);
|
|
73729
73734
|
}
|
|
73730
73735
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.8",
|
|
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.4.
|
|
28
|
+
"@abaplint/transpiler": "^2.4.8",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|