@abaplint/transpiler 2.10.82 → 2.10.83
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.
|
@@ -87,13 +87,14 @@ class LoopTranspiler {
|
|
|
87
87
|
const afterWhere = node.findExpressionAfterToken("WHERE");
|
|
88
88
|
if (afterWhere && afterWhere.get() instanceof abaplint.Expressions.Dynamic) {
|
|
89
89
|
const condition = afterWhere.findFirstExpression(abaplint.Expressions.FieldChain);
|
|
90
|
+
let code = "";
|
|
90
91
|
if (condition) {
|
|
91
|
-
|
|
92
|
-
extra.push(`dynamicWhere: {condition: ${code}, evaluate: (name) => {try { return eval(name);} catch {}}}`);
|
|
92
|
+
code = new expressions_1.FieldChainTranspiler(true).transpile(condition, traversal).getCode();
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
|
-
|
|
95
|
+
code = `"transpiler, const dynamic loop where todo"`;
|
|
96
96
|
}
|
|
97
|
+
extra.push(`dynamicWhere: {condition: ${code}, evaluate: (name) => {try { return eval(name);} catch {}}}`);
|
|
97
98
|
}
|
|
98
99
|
const topEquals = {};
|
|
99
100
|
for (const compare of whereNode?.findDirectExpressions(abaplint.Expressions.ComponentCompare) || []) {
|