@abaplint/core 2.93.57 → 2.93.58
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.
package/build/abaplint.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -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
|
}
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.93.
|
|
3
|
+
"version": "2.93.58",
|
|
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.
|
|
52
|
+
"@types/node": "^18.11.8",
|
|
53
53
|
"chai": "^4.3.6",
|
|
54
54
|
"eslint": "^8.26.0",
|
|
55
55
|
"mocha": "^10.1.0",
|