@abaplint/transpiler 2.7.83 → 2.7.85

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.
@@ -11,7 +11,14 @@ class ConstantTranspiler {
11
11
  const int = node.findFirstExpression(core_1.Expressions.Integer);
12
12
  if (int) {
13
13
  const concat = int.concatTokens().trim();
14
- let code = `new abap.types.Integer().set(${concat})`;
14
+ const parsed = Number.parseInt(concat, 10);
15
+ let code = "";
16
+ if (parsed > 2147483647 || parsed < -2147483648) {
17
+ code = `new abap.types.Integer8().set(${concat})`;
18
+ }
19
+ else {
20
+ code = `new abap.types.Integer().set(${concat})`;
21
+ }
15
22
  if (this.addGet === true) {
16
23
  code += ".get()";
17
24
  }
@@ -27,7 +27,6 @@ class PerformTranspiler {
27
27
  const params = [];
28
28
  let index = 0;
29
29
  for (const t of ((_a = node.findDirectExpression(abaplint.Expressions.PerformTables)) === null || _a === void 0 ? void 0 : _a.findDirectExpressions(abaplint.Expressions.Source)) || []) {
30
- console.dir(t);
31
30
  const name = def === null || def === void 0 ? void 0 : def.getTablesParameters()[index].getName().toLowerCase();
32
31
  if (name === undefined) {
33
32
  continue;
@@ -37,7 +36,6 @@ class PerformTranspiler {
37
36
  }
38
37
  index = 0;
39
38
  for (const u of ((_b = node.findDirectExpression(abaplint.Expressions.PerformUsing)) === null || _b === void 0 ? void 0 : _b.findDirectExpressions(abaplint.Expressions.Source)) || []) {
40
- console.dir(u);
41
39
  const name = def === null || def === void 0 ? void 0 : def.getUsingParameters()[index].getName().toLowerCase();
42
40
  if (name === undefined) {
43
41
  continue;
@@ -47,7 +45,6 @@ class PerformTranspiler {
47
45
  }
48
46
  index = 0;
49
47
  for (const c of ((_c = node.findDirectExpression(abaplint.Expressions.PerformChanging)) === null || _c === void 0 ? void 0 : _c.findDirectExpressions(abaplint.Expressions.Source)) || []) {
50
- console.dir(c);
51
48
  const name = def === null || def === void 0 ? void 0 : def.getChangingParameters()[index].getName().toLowerCase();
52
49
  if (name === undefined) {
53
50
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.7.83",
3
+ "version": "2.7.85",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@abaplint/core": "^2.102.29",
32
+ "@abaplint/core": "^2.102.33",
33
33
  "source-map": "^0.7.4"
34
34
  },
35
35
  "devDependencies": {