@abaplint/core 2.115.5 → 2.115.7

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.
@@ -13,6 +13,7 @@ const Structures = require("../../3_structures/structures");
13
13
  const include_type_1 = require("../statements/include_type");
14
14
  const constant_1 = require("../statements/constant");
15
15
  const constants_1 = require("./constants");
16
+ const ranges_1 = require("../statements/ranges");
16
17
  class Data {
17
18
  static runSyntax(node, input) {
18
19
  var _a;
@@ -109,6 +110,9 @@ class Data {
109
110
  input.scope.addIdentifier(found);
110
111
  }
111
112
  }
113
+ else if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.Ranges) {
114
+ new ranges_1.Ranges().runSyntax(c, input);
115
+ }
112
116
  else if (c instanceof nodes_1.StructureNode && ctyp instanceof Structures.Constants) {
113
117
  const { type: found, values: _ } = new constants_1.Constants().runSyntax(c, input);
114
118
  if (found) {
@@ -52,7 +52,7 @@ class ProxyObject extends _abstract_object_1.AbstractObject {
52
52
  return result;
53
53
  }
54
54
  generateABAPObjects() {
55
- var _a, _b, _c;
55
+ var _a, _b, _c, _d, _e;
56
56
  this.parse();
57
57
  const result = [];
58
58
  if (!this.parsedXML) {
@@ -74,15 +74,26 @@ class ProxyObject extends _abstract_object_1.AbstractObject {
74
74
  continue;
75
75
  }
76
76
  // Find parameters for this method
77
- const params = this.parsedXML.proxyData.filter(i => i.R3_TYPE === "PAIM" && i.OBJ_NAME1 === method.OBJ_NAME1);
77
+ const importingParameters = this.parsedXML.proxyData.filter(i => i.R3_TYPE === "PAIM" && i.OBJ_NAME1 === method.OBJ_NAME1);
78
+ const exportingParameters = this.parsedXML.proxyData.filter(i => i.R3_TYPE === "PAEX" && i.OBJ_NAME1 === method.OBJ_NAME1);
78
79
  code += ` METHODS ${methodName}\n`;
79
- if (params.length > 0) {
80
+ if (importingParameters.length > 0) {
80
81
  code += ` IMPORTING\n`;
81
- for (let i = 0; i < params.length; i++) {
82
- const param = params[i];
82
+ for (let i = 0; i < importingParameters.length; i++) {
83
+ const param = importingParameters[i];
83
84
  const paramName = (_b = param.OBJ_NAME2) === null || _b === void 0 ? void 0 : _b.toLowerCase();
84
85
  const paramType = (_c = param.OBJ_NAME_R) === null || _c === void 0 ? void 0 : _c.toLowerCase();
85
- const isLast = i === params.length - 1;
86
+ const isLast = i === importingParameters.length - 1 && exportingParameters.length === 0;
87
+ code += ` ${paramName} TYPE ${paramType}${isLast ? "." : ""}\n`;
88
+ }
89
+ }
90
+ if (exportingParameters.length > 0) {
91
+ code += ` EXPORTING\n`;
92
+ for (let i = 0; i < exportingParameters.length; i++) {
93
+ const param = exportingParameters[i];
94
+ const paramName = (_d = param.OBJ_NAME2) === null || _d === void 0 ? void 0 : _d.toLowerCase();
95
+ const paramType = (_e = param.OBJ_NAME_R) === null || _e === void 0 ? void 0 : _e.toLowerCase();
96
+ const isLast = i === exportingParameters.length - 1;
86
97
  code += ` ${paramName} TYPE ${paramType}${isLast ? "." : ""}\n`;
87
98
  }
88
99
  }
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.115.5";
77
+ return "2.115.7";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.115.5",
3
+ "version": "2.115.7",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -53,7 +53,7 @@
53
53
  "@microsoft/api-extractor": "^7.55.2",
54
54
  "@types/chai": "^4.3.20",
55
55
  "@types/mocha": "^10.0.10",
56
- "@types/node": "^24.10.3",
56
+ "@types/node": "^24.10.4",
57
57
  "chai": "^4.5.0",
58
58
  "eslint": "^9.39.2",
59
59
  "mocha": "^11.7.5",