@abaplint/transpiler-cli 2.4.12 → 2.4.14

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.
Files changed (2) hide show
  1. package/build/bundle.js +8 -0
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -73492,6 +73492,10 @@ class ReadTableTranspiler {
73492
73492
  const s = new expressions_1.SourceTranspiler().transpile(from, traversal).getCode();
73493
73493
  extra.push("from: " + s);
73494
73494
  }
73495
+ const binary = node.findTokenSequencePosition("BINARY", "SEARCH");
73496
+ if (binary) {
73497
+ extra.push("binarySearch: true");
73498
+ }
73495
73499
  const rt = node.findDirectExpression(abaplint.Expressions.ReadTableTarget);
73496
73500
  const target = rt === null || rt === void 0 ? void 0 : rt.findDirectExpression(abaplint.Expressions.Target);
73497
73501
  const fs = rt === null || rt === void 0 ? void 0 : rt.findDirectExpression(abaplint.Expressions.FSTarget);
@@ -73511,6 +73515,7 @@ class ReadTableTranspiler {
73511
73515
  const compare = node.findDirectExpression(abaplint.Expressions.ComponentCompareSimple);
73512
73516
  if (compare) {
73513
73517
  const conds = [];
73518
+ const blah = [];
73514
73519
  const count = compare.getChildren().length / 3;
73515
73520
  for (let i = 0; i < count; i++) {
73516
73521
  const left = compare.getChildren()[i * 3];
@@ -73533,12 +73538,15 @@ class ReadTableTranspiler {
73533
73538
  const id = unique_identifier_1.UniqueIdentifier.get();
73534
73539
  prefix += "const " + id + " = " + s + ";\n";
73535
73540
  conds.push("abap.compare.eq(i." + field + ", " + id + ")");
73541
+ blah.push(`{key: (i) => {return i.${field}}, value: ${id}}`);
73536
73542
  }
73537
73543
  else {
73538
73544
  conds.push("abap.compare.eq(i." + field + ", " + s + ")");
73545
+ blah.push(`{key: (i) => {return i.${field}}, value: ${s}}`);
73539
73546
  }
73540
73547
  }
73541
73548
  extra.push("withKey: (i) => {return " + conds.join(" && ") + ";}");
73549
+ extra.push(`withKeyValue: [${blah.join(",")}]`);
73542
73550
  }
73543
73551
  let concat = "";
73544
73552
  if (extra.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.4.12",
3
+ "version": "2.4.14",
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.12",
28
+ "@abaplint/transpiler": "^2.4.14",
29
29
  "@types/glob": "^7.2.0",
30
30
  "glob": "=7.2.0",
31
31
  "@types/progress": "^2.0.5",