@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
- const code = new expressions_1.FieldChainTranspiler(true).transpile(condition, traversal).getCode();
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
- throw new Error("LoopTranspiler, dynamic where not implemented");
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) || []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.10.82",
3
+ "version": "2.10.83",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",