@abaplint/transpiler 2.0.48 → 2.0.49

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.
@@ -6,6 +6,7 @@ const chunk_1 = require("../chunk");
6
6
  class DeleteInternalTranspiler {
7
7
  transpile(node, traversal) {
8
8
  const target = traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target)).getCode();
9
+ const concat = node.concatTokens().toUpperCase();
9
10
  const extra = [];
10
11
  const where = node.findFirstExpression(abaplint.Expressions.ComponentCond);
11
12
  if (where) {
@@ -30,17 +31,22 @@ class DeleteInternalTranspiler {
30
31
  }
31
32
  const from = node.findExpressionAfterToken("FROM");
32
33
  if (from && node.findDirectTokenByText("ADJACENT") === undefined) {
33
- extra.push("from: " + traversal.traverse(from).getCode());
34
+ if (concat.startsWith("DELETE TABLE ") === true) {
35
+ extra.push("fromValue: " + traversal.traverse(from).getCode());
36
+ }
37
+ else {
38
+ extra.push("from: " + traversal.traverse(from).getCode());
39
+ }
34
40
  }
35
41
  const to = node.findExpressionAfterToken("TO");
36
42
  if (to) {
37
43
  extra.push("to: " + traversal.traverse(to).getCode());
38
44
  }
39
- let concat = "";
45
+ let blah = "";
40
46
  if (extra.length > 0) {
41
- concat = ",{" + extra.join(",") + "}";
47
+ blah = ",{" + extra.join(",") + "}";
42
48
  }
43
- return new chunk_1.Chunk("abap.statements.deleteInternal(" + target + concat + ");");
49
+ return new chunk_1.Chunk("abap.statements.deleteInternal(" + target + blah + ");");
44
50
  }
45
51
  }
46
52
  exports.DeleteInternalTranspiler = DeleteInternalTranspiler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.0.48",
3
+ "version": "2.0.49",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",