@abaplint/core 2.93.57 → 2.93.59

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.
@@ -2821,6 +2821,8 @@ declare interface IFunctionModuleParameter {
2821
2821
  name: string;
2822
2822
  direction: FunctionModuleParameterDirection;
2823
2823
  type: string | undefined;
2824
+ optional: boolean;
2825
+ defaultValue: string | undefined;
2824
2826
  }
2825
2827
 
2826
2828
  declare interface IGlobalConfig {
@@ -96,7 +96,7 @@ class Procedural {
96
96
  found = new basic_1.TableType(found, { withHeader: true });
97
97
  }
98
98
  }
99
- if (found instanceof basic_1.UnknownType && ((_a = param.type) === null || _a === void 0 ? void 0 : _a.includes("-"))) {
99
+ if ((found instanceof basic_1.UnknownType || found instanceof basic_1.VoidType) && ((_a = param.type) === null || _a === void 0 ? void 0 : _a.includes("-"))) {
100
100
  const [name, field] = param.type.split("-");
101
101
  const f = ddic.lookupTableOrView(name).type;
102
102
  if (f && f instanceof basic_1.StructureType) {
@@ -106,7 +106,7 @@ class Procedural {
106
106
  }
107
107
  }
108
108
  }
109
- else if (found instanceof basic_1.UnknownType && ((_b = param.type) === null || _b === void 0 ? void 0 : _b.includes("=>"))) {
109
+ else if ((found instanceof basic_1.UnknownType || found instanceof basic_1.VoidType) && ((_b = param.type) === null || _b === void 0 ? void 0 : _b.includes("=>"))) {
110
110
  const [name, field] = param.type.split("=>");
111
111
  const def = this.scope.findObjectDefinition(name);
112
112
  const c = new _object_oriented_1.ObjectOriented(this.scope).searchTypeName(def, field);
@@ -114,7 +114,7 @@ class Procedural {
114
114
  found = c.getType();
115
115
  }
116
116
  }
117
- if (found instanceof basic_1.UnknownType && param.type) {
117
+ if ((found instanceof basic_1.UnknownType || found instanceof basic_1.VoidType) && param.type) {
118
118
  const f = ddic.lookupBuiltinType(param.type);
119
119
  if (f) {
120
120
  found = f;
@@ -39,6 +39,8 @@ class FunctionModuleDefinition {
39
39
  name: param.PARAMETER,
40
40
  direction: FunctionModuleParameterDirection.importing,
41
41
  type: param.TYP || param.DBFIELD,
42
+ optional: param.OPTIONAL === "X",
43
+ defaultValue: param.DEFAULT,
42
44
  });
43
45
  }
44
46
  }
@@ -51,6 +53,8 @@ class FunctionModuleDefinition {
51
53
  name: param.PARAMETER,
52
54
  direction: FunctionModuleParameterDirection.changing,
53
55
  type: param.TYP || param.DBFIELD,
56
+ optional: param.OPTIONAL === "X",
57
+ defaultValue: param.DEFAULT,
54
58
  });
55
59
  }
56
60
  }
@@ -63,6 +67,8 @@ class FunctionModuleDefinition {
63
67
  name: param.PARAMETER,
64
68
  direction: FunctionModuleParameterDirection.exporting,
65
69
  type: param.TYP || param.DBFIELD,
70
+ optional: true,
71
+ defaultValue: undefined,
66
72
  });
67
73
  }
68
74
  }
@@ -76,6 +82,8 @@ class FunctionModuleDefinition {
76
82
  direction: FunctionModuleParameterDirection.tables,
77
83
  // table types are stored in TYP
78
84
  type: param.DBSTRUCT || param.TYP,
85
+ optional: param.OPTIONAL === "X",
86
+ defaultValue: undefined,
79
87
  });
80
88
  }
81
89
  }
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.93.57";
66
+ return "2.93.59";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.93.57",
3
+ "version": "2.93.59",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -49,7 +49,7 @@
49
49
  "@microsoft/api-extractor": "^7.33.5",
50
50
  "@types/chai": "^4.3.3",
51
51
  "@types/mocha": "^10.0.0",
52
- "@types/node": "^18.11.7",
52
+ "@types/node": "^18.11.8",
53
53
  "chai": "^4.3.6",
54
54
  "eslint": "^8.26.0",
55
55
  "mocha": "^10.1.0",