@abaplint/transpiler-cli 2.7.87 → 2.7.88
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 +13 -9
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -77776,25 +77776,29 @@ class ReadTableTranspiler {
|
|
|
77776
77776
|
if (left.get() instanceof abaplint.Expressions.Dynamic
|
|
77777
77777
|
&& left instanceof abaplint.Nodes.ExpressionNode) {
|
|
77778
77778
|
const concat = left.concatTokens().toLowerCase();
|
|
77779
|
-
field = concat.substring(2, concat.length - 2);
|
|
77779
|
+
field = "i." + concat.substring(2, concat.length - 2);
|
|
77780
|
+
}
|
|
77781
|
+
else if (left.get() instanceof abaplint.Expressions.ComponentChainSimple
|
|
77782
|
+
&& left instanceof abaplint.Nodes.ExpressionNode) {
|
|
77783
|
+
field = new expressions_1.ComponentChainSimpleTranspiler("i.").transpile(left, traversal).getCode();
|
|
77780
77784
|
}
|
|
77781
77785
|
else {
|
|
77782
|
-
|
|
77786
|
+
throw new Error("transpiler: READ TABLE, unexpected node");
|
|
77783
77787
|
}
|
|
77784
|
-
if (field === "table_line") {
|
|
77788
|
+
if (field === "i.table_line") {
|
|
77785
77789
|
usesTableLine = true;
|
|
77786
77790
|
}
|
|
77787
77791
|
if (s.includes("await")) {
|
|
77788
77792
|
const id = unique_identifier_1.UniqueIdentifier.get();
|
|
77789
77793
|
prefix += "const " + id + " = " + s + ";\n";
|
|
77790
|
-
withKey.push("abap.compare.eq(
|
|
77791
|
-
withKeyValue.push(`{key: (i) => {return
|
|
77792
|
-
withKeySimple.push(`"${field}": ${id}`);
|
|
77794
|
+
withKey.push("abap.compare.eq(" + field + ", " + id + ")");
|
|
77795
|
+
withKeyValue.push(`{key: (i) => {return ${field}}, value: ${id}}`);
|
|
77796
|
+
withKeySimple.push(`"${field.replace("i.", "")}": ${id}`);
|
|
77793
77797
|
}
|
|
77794
77798
|
else {
|
|
77795
|
-
withKey.push("abap.compare.eq(
|
|
77796
|
-
withKeyValue.push(`{key: (i) => {return
|
|
77797
|
-
withKeySimple.push(`"${field}": ${s}`);
|
|
77799
|
+
withKey.push("abap.compare.eq(" + field + ", " + s + ")");
|
|
77800
|
+
withKeyValue.push(`{key: (i) => {return ${field}}, value: ${s}}`);
|
|
77801
|
+
withKeySimple.push(`"${field.replace("i.", "")}": ${s}`);
|
|
77798
77802
|
}
|
|
77799
77803
|
}
|
|
77800
77804
|
extra.push("withKey: (i) => {return " + withKey.join(" && ") + ";}");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.88",
|
|
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.88",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|